The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A193925 a(n) = a(n-1)^2 - n^(n-2) + n. 1
0, 0, 1, 1, -11, 1, -1289, 1644721, 2705106905705, 7317603371292879756764065, 53547319099556919431874542743248407878119975324235 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 5 16:08 EDT 2024. Contains 373107 sequences. (Running on oeis4.)