The ratio of the B_{s}^{0} and B^{+} fragmentation fractions f_{s} and f_{u} is studied with B_{s}^{0}→J/ψϕ and B^{+}→J/ψK^{+} decays using data collected by the LHCb experiment in proton-proton collisions at 7, 8, and 13 TeV center-of-mass energies. The analysis is performed in bins of B-meson momentum, longitudinal momentum, transverse momentum, pseudorapidity, and rapidity. The fragmentation-fraction ratio f_{s}/f_{u} is observed to depend on the B-meson transverse momentum with a significance of 6.0σ. This dependency is driven by the 13 TeV sample (8.7σ), while the results for the other collision energies are not significant when considered separately. Furthermore, the results show a 4.8σ evidence for an increase of f_{s}/f_{u} as a function of collision energy.