OFFSET
0,3
COMMENTS
Example of a recursive sequence which produces a table containing two zeros.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..12
Eric Weisstein's World of Mathematics, Recursive Sequence
FORMULA
a(0) = 0, a(n) = a(n-1)^2 - n^(n+1).
EXAMPLE
a(2) = -7 because a(1) = -1 and (-1)^2 - 2^(2+1) = -7.
MATHEMATICA
RecurrenceTable[{a[n] == a[n - 1]^2 - n^(n + 1), a[0] == 0}, a, {n, 10}]
PROG
(PARI) a=0; for(n=0, 10, print1(a=a^2-n^(n+1), ", "));
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Arkadiusz Wesolowski, Aug 01 2011
STATUS
approved