OFFSET
0,1
REFERENCES
Intelligence test in Chess Life, Vol. 49(#6) 1994, p. 14.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 0..21
FORMULA
a(n+1) = a(n-1)^2 - a(n - 2*(1 - n mod 2)), a(0)=7, a(1)=9. - Reinhard Zumkeller, Mar 25 2003
MATHEMATICA
a[n_] := a[n - 2]^2 - a[n - 3 + If[ EvenQ@ n, 2, 0]]; a[0] = 7; a[1] = 9; Array[a, 14, 0] (* Robert G. Wilson v, Aug 30 2014 *)
PROG
(PARI) a(n)=if(n<0, 0, if(n<2, [7, 9][n+1], a(n-2)^2-a(n-2+(-1)^n)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Reinhard Zumkeller, Mar 25 2003
STATUS
approved