login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A051314
Euclid-Mullin sequence (A000945) with initial value a(1)=29 instead of a(1)=2.
1
29, 2, 59, 3, 10267, 7, 5, 3689035771, 19, 396029, 489851, 2971, 179, 13, 4441009, 419, 79, 53, 3109, 538004633, 138285071, 241, 263, 443, 11, 17, 951837583454247922680798591029699, 739, 43, 181, 131, 3257, 31, 2237
OFFSET
1,1
LINKS
Tyler Busby, Table of n, a(n) for n = 1..56 (terms 1..46 from Robert Price)
MATHEMATICA
a[1]=29; 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]=29; for(i=2, m, v[i]=spf(1+prod(j=1, i-1, v[j]))); v; \\ Anders Hellström, Nov 21 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved