OFFSET
1,1
LINKS
Tyler Busby, Table of n, a(n) for n = 1..50 (terms 1..42 from Robert Price)
MATHEMATICA
a[1]=19; a[n_] := First[ Flatten[ FactorInteger[ 1+Product[ a[ j ], {j, 1, n-1} ] ] ] ]; Array[a, 10]
PROG
(PARI) spf(n)=factor(n)[1, 1]
first(m)=my(v=vector(m)); v[1]=19; for(i=2, m, v[i]=spf(1+prod(j=1, i-1, v[j]))); v; \\ Anders Hellström, Aug 31 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved