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.

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

Original entry on oeis.org

47, 2, 5, 3, 17, 23971, 7, 4022094091, 3673, 11, 32915297, 21513736430048030802333949693291, 43, 349, 613, 37, 6767927, 59, 71249, 19, 4455467, 997, 181, 593, 681271, 113, 13, 1205224649, 1699, 533327, 1361, 29
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a[1]=47; a[n_] := First[ Flatten[ FactorInteger[ 1+Product[ a[ j ], {j, 1, n-1} ] ] ] ]; Array[a, 10]
  • PARI
    spf(n)=factor(n)[1, 1]; \\ A020639
    first(m)=my(v=vector(m)); v[1]=47; for(i=2, m, v[i]=spf(1+prod(j=1, i-1, v[j]))); v \\ Anders Hellström, Nov 25 2015; corrected by Michel Marcus, Oct 10 2023