cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A193925 a(n) = a(n-1)^2 - n^(n-2) + n.

Original entry on oeis.org

0, 0, 1, 1, -11, 1, -1289, 1644721, 2705106905705, 7317603371292879756764065, 53547319099556919431874542743248407878119975324235
Offset: 0

Views

Author

Arkadiusz Wesolowski, Aug 09 2011

Keywords

Comments

Example of a recursive sequence which produces a table containing three ones.

Examples

			a(4) = -11 because a(3) = 1 and 1^2 - 4^(4-2) + 4 = -11.
		

Crossrefs

Programs

  • Mathematica
    RecurrenceTable[{a[n] == a[n - 1]^2 - n^(n - 2) + n, a[0] == 0}, a, {n, 10}]
  • PARI
    print1(a=0, ", "); for(n=1, 10, print1(a=a^2-n^(n-2)+n, ", "));

Formula

a(0) = 0, a(n) = a(n-1)^2 - n^(n-2) + n.