OFFSET
0,4
LINKS
Michael Somos and R. Haas, A linked pair of sequences implies the primes are infinite, Amer. Math. Monthly, 110(6) (2003), 539-540.
FORMULA
a(n) = (a(n-1) + a(n-2))*a(n-2) for n >= 2.
Lim_{n -> infinity} a(n)/a(n-1)^phi = 1, where phi = A001622. - Gerald McGarvey, Aug 29 2004
a(n) ~ c^(phi^n), where c = 1.23642417842410860616065684299168229758826316461949675490684055924721259... and phi = A001622 = (1 + sqrt(5))/2 is the golden ratio. - Vaclav Kotesovec, May 21 2015
MATHEMATICA
Flatten[{1, RecurrenceTable[{a[n]==(a[n-1]+a[n-2])*a[n-2], a[1]==1, a[2]==1}, a, {n, 1, 10}]}] (* Vaclav Kotesovec, May 21 2015 *)
PROG
(PARI) {a(n) = local(v); if( n<3, n>=0, v = [1, 1]; for( k=3, n, v = [v[2], v[1] * (v[1] + v[2])]); v[2])}
(PARI) {a(n) = if( n<3, n>=0, (a(n-1) + a(n-2)) * a(n-2))}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael Somos, Sep 20 2001
STATUS
approved