A152839 a(0) = 0; a(n) = n! - a(n-1)!.
0, 0, 1, 5, -96
Offset: 0
Extensions
Indices added to definition, offset corrected - R. J. Mathar, Jan 08 2009
Definition corrected by Georg Fischer, Jun 03 2025
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.
lst={};a=1;Do[a=n^(n+a)-a^(n+a);AppendTo[lst,a],{n,0,3}];lst
lst={};a=1;Do[a=a^(n+a)-n^(n+a);AppendTo[lst,Floor[a]],{n,0,5}];lst