OFFSET
1,1
COMMENTS
The smallest composite member of the sequence is 1843 (19 * 97), which divides 17#+1 (19 * 97 * 277). Based on Euclid's proof that there are infinitely many primes.
LINKS
Jeppe Stig Nielsen, Table of n, a(n) for n = 1..1000
EXAMPLE
59 is in the sequence because 13#+1 = 30031 = 59 * 509.
PROG
(PARI) n=0; for(i=2, 1e5, p=Mod(1, i); forprime(q=2, factor(i)[1, 1], if(p==-1, print(n++, " ", i); break()); p*=q)) \\ Jeppe Stig Nielsen, Mar 25 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Franklin T. Adams-Watters, Jan 05 2006
STATUS
approved