%0 Journal Article %T Test of lepton flavor universality inB±→K±μ+μ-andB±→K±e+e-decays in proton-proton collisions ats=13TeV. %A Cms Collaboration T %J Rep Prog Phys %V 87 %N 7 %D 2024 Jul 3 %M 38957892 %F 17.802 %R 10.1088/1361-6633/ad4e65 %X A test of lepton flavor universality inB±→K±μ+μ-andB±→K±e+e-decays, as well as a measurement of differential and integrated branching fractions of a nonresonantB±→K±μ+μ-decay are presented. The analysis is made possible by a dedicated data set of proton-proton collisions ats=13TeVrecorded in 2018, by the CMS experiment at the LHC, using a special high-rate data stream designed for collecting about 10 billion unbiased b hadron decays. The ratio of the branching fractionsB(B±→K±μ+μ-)toB(B±→K±e+e-)is determined from the measured double ratioR(K)of these decays to the respective branching fractions of theB±→J/ψK±withJ/ψ→μ+μ-ande+e-decays, which allow for significant cancellation of systematic uncertainties. The ratioR(K)is measured in the range1.1