OFFSET
1,4
COMMENTS
This sequence of least roots modulo prime(n) for k^8 - 16, represents the counterexample to a conjecture that stated if k^m - j has a root for modulo every prime, then j must be of the form j = y^m. The corrected theorem which excludes the counterexample is known as the Grunwald-Wang Theorem.
Note that a(n) < prime(n)/2 for all n.
LINKS
Frank M Jackson, Table of n, a(n) for n = 1..10000
Wikipedia, Grunwald-Wang theorem.
EXAMPLE
a(4) = 3 because prime(4) = 7 and the least k such that k^8 - 16 = 0 (mod 7) is k = 3.
MATHEMATICA
lst = {}; Do[Do[If[Mod[m^8, Prime[n]]==Mod[16, Prime[n]], AppendTo[lst, m]; Break[]], {m, 0, Prime[n]-1}], {n, 1, 100}]; lst
PROG
(PARI) a(n) = my(k=0, p=prime(n)); while(Mod(k, p)^8 != 16, k++); k; \\ Michel Marcus, Mar 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank M Jackson, Mar 01 2021
STATUS
approved
