The production of electrons from heavy-flavour hadron decays was measured as a function of transverse momentum (an id="mmlsi2" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si2.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=fc913c73eb2d293f338bf5eac1af122e" title="Click to view the MathML source">pTan>an class="mathContainer hidden">an class="mathCode">ath altimg="si2.gif" overflow="scroll">pathvariant="normal">Tath>an>an>an>) in minimum-bias p–Pb collisions at an id="mmlsi1" class="mathmlsrc"><a title="View the MathML source" class="mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si1.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=b1cc8bc8ab2427eca86dd7d4f446f259">ass="imgLazyJSB inlineImage" height="15" width="105" alt="View the MathML source" style="margin-top: -5px; vertical-align: middle" title="View the MathML source" src="/sd/grey_pxl.gif" data-inlimgeid="1-s2.0-S0370269315010151-si1.gif">a>an class="mathContainer hidden">an class="mathCode">ath altimg="si1.gif" overflow="scroll">sathvariant="normal">NN=5.02TeVath>an>an>an> using the ALICE detector at the LHC. The measurement covers the an id="mmlsi2" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si2.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=fc913c73eb2d293f338bf5eac1af122e" title="Click to view the MathML source">pTan>an class="mathContainer hidden">an class="mathCode">ath altimg="si2.gif" overflow="scroll">pathvariant="normal">Tath>an>an>an> interval an id="mmlsi117" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si117.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=64f08a678f93b10e95cd074cc4808f53" title="Click to view the MathML source">0.5<pT<12 GeV/can>an class="mathContainer hidden">an class="mathCode">ath altimg="si117.gif" overflow="scroll">0.5<pathvariant="normal">T<12GeValse">/cath>an>an>an> and the rapidity range an id="mmlsi129" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si129.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=75d9e03aaa27e92fff8630c644cede5b" title="Click to view the MathML source">−1.065<ycms<0.135an>an class="mathContainer hidden">an class="mathCode">ath altimg="si129.gif" overflow="scroll">−1.065<yathvariant="normal">cms<0.135ath>an>an>an> in the centre-of-mass reference frame. The contribution of electrons from background sources was subtracted using an invariant mass approach. The nuclear modification factor an id="mmlsi114" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si114.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=7870a314240d78af9d436f8136f3b599" title="Click to view the MathML source">RpPban>an class="mathContainer hidden">an class="mathCode">ath altimg="si114.gif" overflow="scroll">Rathvariant="normal">pPbath>an>an>an> was calculated by comparing the an id="mmlsi2" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si2.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=fc913c73eb2d293f338bf5eac1af122e" title="Click to view the MathML source">pTan>an class="mathContainer hidden">an class="mathCode">ath altimg="si2.gif" overflow="scroll">pathvariant="normal">Tath>an>an>an>-differential invariant cross section in p–Pb collisions to a pp reference at the same centre-of-mass energy, which was obtained by interpolating measurements at an id="mmlsi116" class="mathmlsrc"><a title="View the MathML source" class="mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si116.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=6f276a89225c9273288785adedf62c11">ass="imgLazyJSB inlineImage" height="15" width="90" alt="View the MathML source" style="margin-top: -5px; vertical-align: middle" title="View the MathML source" src="/sd/grey_pxl.gif" data-inlimgeid="1-s2.0-S0370269315010151-si116.gif">a>an class="mathContainer hidden">an class="mathCode">ath altimg="si116.gif" overflow="scroll">s=2.76TeVath>an>an>an> and an id="mmlsi126" class="mathmlsrc"><a title="View the MathML source" class="mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si126.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=9c935ad32becaa97c21d560af0879b6e">ass="imgLazyJSB inlineImage" height="15" width="71" alt="View the MathML source" style="margin-top: -5px; vertical-align: middle" title="View the MathML source" src="/sd/grey_pxl.gif" data-inlimgeid="1-s2.0-S0370269315010151-si126.gif">a>an class="mathContainer hidden">an class="mathCode">ath altimg="si126.gif" overflow="scroll">s=7TeVath>an>an>an>. The an id="mmlsi114" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si114.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=7870a314240d78af9d436f8136f3b599" title="Click to view the MathML source">RpPban>an class="mathContainer hidden">an class="mathCode">ath altimg="si114.gif" overflow="scroll">Rathvariant="normal">pPbath>an>an>an> is consistent with unity within uncertainties of about 25%, which become larger for an id="mmlsi2" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si2.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=fc913c73eb2d293f338bf5eac1af122e" title="Click to view the MathML source">pTan>an class="mathContainer hidden">an class="mathCode">ath altimg="si2.gif" overflow="scroll">pathvariant="normal">Tath>an>an>an> below an id="mmlsi10" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si10.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=ac3ba3974d40eee946a81b9971c005df" title="Click to view the MathML source">1 GeV/can>an class="mathContainer hidden">an class="mathCode">ath altimg="si10.gif" overflow="scroll">1GeValse">/cath>an>an>an>. The measurement shows that heavy-flavour production is consistent with binary scaling, so that a suppression in the high-an id="mmlsi2" class="mathmlsrc">an class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269315010151&_mathId=si2.gif&_user=111111111&_pii=S0370269315010151&_rdoc=1&_issn=03702693&md5=fc913c73eb2d293f338bf5eac1af122e" title="Click to view the MathML source">pTan>an class="mathContainer hidden">an class="mathCode">ath altimg="si2.gif" overflow="scroll">pathvariant="normal">Tath>an>an>an> yield in Pb–Pb collisions has to be attributed to effects induced by the hot medium produced in the final state. The data in p–Pb collisions are described by recent model calculations that include cold nuclear matter effects.