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.

A239900 a(0)=2, a(1)=5; thereafter a(n) = product of all preceding terms, plus 1.

Original entry on oeis.org

2, 5, 11, 111, 12211, 149096311, 22229709804712411, 494159998001727075769152612720511
Offset: 0

Views

Author

N. J. A. Sloane, Apr 05 2014

Keywords

Crossrefs

A variant of A144784. Cf. A239900.

Programs

  • Magma
    I:=[2,5,11]; [n le 3 select I[n] else Self(n-1)*(Self(n-1)-1)+1: n in [1..10]]; // Vincenzo Librandi, May 22 2014
  • Mathematica
    nxt[{t_,a_}]:=Module[{k=t+1},{t k,k}]; Join[{2},NestList[nxt,{10,5},7][[All,2]]] (* Harvey P. Dale, Oct 25 2020 *)

Extensions

a(6) corrected by Harvey P. Dale, Oct 25 2020