login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A193925
a(n) = a(n-1)^2 - n^(n-2) + n.
1
0, 0, 1, 1, -11, 1, -1289, 1644721, 2705106905705, 7317603371292879756764065, 53547319099556919431874542743248407878119975324235
OFFSET
0,5
COMMENTS
Example of a recursive sequence which produces a table containing three ones.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 0..14
Eric Weisstein's World of Mathematics, Recursive Sequence
FORMULA
a(0) = 0, a(n) = a(n-1)^2 - n^(n-2) + n.
EXAMPLE
a(4) = -11 because a(3) = 1 and 1^2 - 4^(4-2) + 4 = -11.
MATHEMATICA
RecurrenceTable[{a[n] == a[n - 1]^2 - n^(n - 2) + n, a[0] == 0}, a, {n, 10}]
PROG
(PARI) print1(a=0, ", "); for(n=1, 10, print1(a=a^2-n^(n-2)+n, ", "));
CROSSREFS
Sequence in context: A284232 A204848 A027645 * A365644 A010190 A323454
KEYWORD
easy,sign
AUTHOR
STATUS
approved