OFFSET
1,6
COMMENTS
From Pierre CAMI, Sep 12 2017: (Start)
Conjectures:
lim_{N->infinity} (Sum_{n=1..N} a(n)) / (Sum_{n=1..N} n) = 1/2;
a(n)/n is always < 4.
This is certified for the first 3100 primes a(n)*prime(n)#+1.
(End)
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..3100
Pierre CAMI, PFGW Sript
MATHEMATICA
With[{P = FoldList[Times, Prime@ Range@ 120]}, Table[k = 1; While[CompositeQ[k P[[n]] + 1], k++]; k, {n, Length@ P}]] (* Michael De Vlieger, Sep 18 2017 *)
PROG
(PARI) a(n) = my(k=1, pr = prod(i=1, n, prime(i))); while (! isprime(k*pr+1), k++); k; \\ Michel Marcus, Oct 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Nov 10 2002
STATUS
approved