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”).

A051310
Euclid-Mullin sequence (A000945) with initial value a(1)=13 instead of a(1)=2.
1
13, 2, 3, 79, 6163, 7, 1601, 11, 137, 5, 199, 151, 263, 983, 31, 83, 30187890723499, 23847817657, 37, 67, 9661, 251, 73, 1214623152057970133, 24597089626521443731307390760915220105471840174452030562332559181845834101711082531
OFFSET
1,1
LINKS
A. R. Booker, S. A. Irvine, The Euclid-Mullin graph, arXiv preprint arXiv:1508.03039 [math.NT], 2015-2016.
MATHEMATICA
a[1]=13; 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]=13; for(i=2, m, v[i]=spf(1+prod(j=1, i-1, v[j]))); v; \\ Anders Hellström, Aug 22 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved