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.

A072191 a(n) = a(n-1)^2 + 2.

Original entry on oeis.org

0, 2, 6, 38, 1446, 2090918, 4371938082726, 19113842599189892819591078, 365338978906606237729724396156395693696687137202086, 133472569508521677503139972517335009022889462418844369330479463819154657319297609174034202576402751398
Offset: 0

Views

Author

Miklos Kristof, Jul 02 2002

Keywords

Comments

This shows that in the Mandelbrot set (with z^2 + c), the point c = 2 escapes to infinity. - Alonso del Arte, Apr 08 2016

Examples

			0^2 + 2 = 2, 2^2 + 2 = 6, 6^2 + 2 = 38 ...
		

References

  • Mordechai Ben-Ari, Mathematical Logic for Computer Science, Third edition, 173-203

Crossrefs

Cf. A001566 (a(n-1)^2-2), A003095 (a(n-1)^2+1).

Programs

  • Magma
    [n le 1 select 0 else Self(n-1)^2+2: n in [1..10]]; // Vincenzo Librandi, Oct 05 2015
  • Mathematica
    NestList[#^2 + 2 &, 0, 10]  (* Harvey P. Dale, Jan 23 2011 *)
  • PARI
    a(n)=if(n<1, 0, 2+a(n-1)^2) /* Michael Somos, Mar 25 2006 */
    

Formula

a(n) ~ c^(2^n), where c = 1.57583423499194129500626808486999436507... - Vaclav Kotesovec, Sep 20 2013
a(n) mod 2 = 0. - Altug Alkan, Oct 04 2015

Extensions

Edited by Robert G. Wilson v, Jul 03 2002