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”).

A143782
Let b(0) = 3 and b(n) = b(n-1)^n - n^b(n-1) for n >= 1. a(n) = trunc(b(n)), where trunc(x) is floor(x) for x >= 0, ceiling(x) for x < 0.
0
3, 2, 0, -1, 0, -3, 898
OFFSET
0,1
COMMENTS
The next number is too large to include.
MAPLE
b[0]:= 3:
for n from 1 to 7 do b[n]:= b[n-1]^n - n^b[n-1] od:
seq(trunc(b[i]), i=0..7); # Robert Israel, Nov 13 2024
MATHEMATICA
lst={}; k=3; Do[k=k^n-n^k; AppendTo[lst, IntegerPart[k]], {n, 7}]; lst
CROSSREFS
Sequence in context: A131290 A138741 A116604 * A303913 A117406 A290216
KEYWORD
sign
AUTHOR
EXTENSIONS
Name clarified and a(0) inserted by Robert Israel, Nov 13 2024
STATUS
approved