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.

A144779 Variant of Sylvester's sequence: a(n+1) = a(n)^2 - a(n) + 1, with a(1) = 5.

Original entry on oeis.org

5, 21, 421, 176821, 31265489221, 977530816197201697621, 955566496615167328821993756200407115362021, 913107329453384594090655605142589591944556891901674138343716072975722193082773842421
Offset: 1

Views

Author

Artur Jasinski, Sep 21 2008

Keywords

Examples

			a(0) = 4, a(1) = 4+1 = 5, a(2) = 4*5+1 = 21, a(3) = 4*5*21+1 = 421, a(4) = 4*5*21*421+1 = 176821, ... - _Philippe Deléham_, Apr 19 2013
		

Crossrefs

Programs

  • Mathematica
    a = {}; k = 5; Do[AppendTo[a, k]; k = k^2 - k + 1, {n,1,10}]; a (* Artur Jasinski, Sep 21 2008 *)
    NestList[#^2-#+1&,5,8] (* Harvey P. Dale, Jan 17 2012 *)

Formula

a(n) = round(2.127995907464107054577351...)^(2^n) = round(A144803^(2^n)). [corrected by Joerg Arndt, Jan 15 2021]
a(n+1) = a(n)^2 - a(n) + 1, with a(1) = 5.