/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportFormalConjecturesUtil
[ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number
theory. Monographies de L'Enseignement Mathematique (1980).
[LeLe62] Lehmer, D. H. and Lehmer, Emma, On runs of residues. Proc. Amer. Math. Soc. (1962),
102-106.
[LLMS62] Lehmer, D. H. and Lehmer, E. and Mills, W. H. and Selfridge, J. L., Machine proof of a
theorem on cubic residues. Math. Comp. (1962), 407-415.
[BiMi63] Bierstedt, R. G. and Mills, W. H., On the bound for a pair of consecutive quartic
residues of a prime. Proc. Amer. Math. Soc. (1963), 628-632.
[LLM63] Lehmer, D. H. and Lehmer, Emma and Mills, W. H., Pairs of consecutive power residues.
Canadian J. Math. (1963), 172-177.
[BLL64] Brillhart, John and Lehmer, D. H. and Lehmer, Emma, Bounds for pairs of consecutive
seventh and higher power residues. Math. Comp. (1964), 397-407.
[Gr64g] Graham, R. L., On quadruples of consecutive $k$th power residues. Proc. Amer. Math.
Soc. (1964), 196-197.
[Du65] Dunton, M., Bounds for pairs of cubic residues. Proc. Amer. Math. Soc. (1965),
330-332.
[Hi91] Hildebrand, Adolf, On consecutive $k$th power residues. II. Michigan Math. J. (1991),
241-253.
@[expose]publicsectionopenFilternamespaceErdos436
IsPowerResidue k p a means that $a$ is a $k$th power residue modulo $p$, that is,
$p \nmid a$ and $a \equiv x^k \pmod{p}$ for some $x$.
If $p$ is a prime and $k, m \geq 2$, let $r(k, m, p)$ be the minimal $r$ such that
$r, r + 1, \ldots, r + m - 1$ are all $k$th power residues modulo $p$, and let
$\Lambda(k, m) = \limsup_{p \to \infty} r(k, m, p)$. Is $\Lambda(k, 2)$ finite for all $k$?
A question of Lehmer and Lehmer [LeLe62]. Hildebrand [Hi91] proved that $\Lambda(k, 2)$ is finite
for all $k \geq 2$.