OFFSET
0,1
COMMENTS
Conjecture: for n > 2, this is the least prime p such that 1^2, 2^2, 3^2, ..., n^2 are distinct mod p. Checked to 10^4. - Charles R Greathouse IV, Dec 03 2022
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = A151800(2*n). - Reinhard Zumkeller, Nov 15 2013
MAPLE
MATHEMATICA
Table[NextPrime[2n], {n, 0, 100}] (* Vladimir Joseph Stephan Orlovsky, Mar 03 2011 *)
PROG
(PARI) a(n) = nextprime(2*n + 1) \\ Harry J. Smith, Jul 03 2009
(Haskell)
a060264 = a151800 . (* 2) -- Reinhard Zumkeller, Nov 15 2013
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Labos Elemer, Mar 23 2001
STATUS
approved