OFFSET
1,1
COMMENTS
Is a(n) == -1 mod 6 for n > 1? - Benoit Cloitre, Sep 17 2002
The answer is yes, since each term after the first must be 1 mod 2 and also 2 mod 3. Every such number is -1 mod 6. - Brian Galebach, Jun 02 2004
EXAMPLE
a(1) = 3 == 1 (mod 2), a(4) = 53 == 1 (mod 2) ==2 (mod 3) ==3 (mod 5) == 4 (mod 7)
PROG
(PARI) a(n)=if(n<0, 0, s=1; while(sum(k=1, n, (s-k)%prime(k))>0, s++); s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 13 2002
EXTENSIONS
More terms from Benoit Cloitre, Sep 17 2002
More terms from Brian Galebach, Jun 02 2004
More terms from Brian Galebach, Jun 14 2004
STATUS
approved