OFFSET
1,2
COMMENTS
Same as n such that n divides A008864(n). - David James Sycamore, Jul 23 2018
Also numbers n such that prime(n) == n-1 (mod n). - Muniru A Asiru, Jul 24 2018
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..108
E. Labos, Graph of prime(n) mod n
EXAMPLE
10 is a member because the 10th prime, 29, is congruent to -1 mod 10.
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; p = 1; Do[ If[Mod[p = NextPrim[p], n] == n - 1, Print[n]], {n, 1, 10^9}] (* Robert G. Wilson v, Feb 18 2004 *)
PROG
(PARI) isok(n) = Mod(prime(n), n) == -1; \\ Michel Marcus, Jul 24 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Nov 15 1999
Terms a(33) and beyond from Giovanni Resta, Feb 23 2020
STATUS
approved