OFFSET
1,1
EXAMPLE
a(2)=7 because p[2]=3 and x=7 is smallest prime > 2 such that x (mod 2)=x (mod 3).
PROG
(PARI) a(n) = {p = nextprime(n+1); while ( (p % n) != (p % prime(n)), p = nextprime(p+1)); p; } \\ Michel Marcus, Oct 05 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 21 2004
STATUS
approved