OFFSET
0,3
FORMULA
a(n+3) = a(n+2)^2 + a(n+2) - a(n)^2, with a(0) = a(1) = 1, a(2) = 3.
a(n) ~ c^(2^n), where c = 1.356519333072951374233963037913978335267300244021120535099185060013... - Vaclav Kotesovec, Apr 15 2017
MATHEMATICA
RecurrenceTable[{a[n + 2] == a[n + 1]^2 + a[n]^2 + 1, a[0] == 1, a[1] == 1}, a, {n, 0, 12}]
PROG
(Maxima) a(n) := if (n=0 or n=1) then 1 else a(n-1)^2 + a(n-2)^2 + 1; makelist(a(n), n, 0, 12);
(Magma) [n le 2 select 1 else Self(n-1)^2+Self(n-2)^2+1: n in [1..10]]; // Bruno Berselli, Mar 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Emanuele Munarini, Mar 30 2017
STATUS
approved