OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
Zak Seidov, Graph of 1000 terms
EXAMPLE
If n=3, then p_n=5 and we see that {2,3,5,7,11,13,17,19} is the minimal set of the first primes, which contains all residues modulo 5 (we have consecutive residues {2,3,0,2,1,3,2,4}. Therefore a(3)=8.
MATHEMATICA
Table[k = 1; While[Union@ Mod[Prime@ Range@ k, #] != Range[0, # - 1], k++] &@ Prime@ n; k, {n, 56}] (* Michael De Vlieger, May 16 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, May 22 2010
EXTENSIONS
a(10) corrected and a(11)-a(56) from Donovan Johnson, Jun 23 2010
STATUS
approved