OFFSET
1,1
COMMENTS
Trivially a(n) >= prime(n+1). I would like to see a better lower bound.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..134
EXAMPLE
The primes up to 15 are (2, 3, 5, 7, 11, 13) and 15 mod each of these primes leaves residues of (1, 0, 0, 1, 4, 2). There are two duplicates (1 appears twice and so does 0) and no smaller number has this property, so a(2) = 15.
PROG
(PARI) a(n)=my(P=List(), m=1); while(#P-#Set(apply(p->m%p, P)) != n, if(isprime(m++), listput(P, m))); m
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Jun 17 2016
STATUS
approved