cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A051310 Euclid-Mullin sequence (A000945) with initial value a(1)=13 instead of a(1)=2.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a[1]=13; a[n_] := First[ Flatten[ FactorInteger[ 1+Product[ a[ j ], {j, 1, n-1} ] ] ] ]; Array[a, 10]
  • 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