OFFSET
4,1
COMMENTS
The corresponding values of k are {3, 4, 4, 6, 6, 5, 6, 6, 9, 8, 16, 7, 8, 8, 8, 27, …}
LINKS
Michel Lagneau, Table of n, a(n) for n = 4..10000
EXAMPLE
a(8) = 17 because 17 == 6^2 mod 19 where 19 = prime(8) and 6 is the smallest k.
Remark : 11 == 7^2 mod 19, but 7 > 6.
MAPLE
for n from 2 to 100 do:p:=ithprime(n):i:=0:for k from 0 to p-1 while(i=0) do: q:=irem(k^2, p):if type(q, prime)=true then i:=1:printf(`%d, `, q):else fi:od:od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, May 29 2012
STATUS
approved