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

A024040
a(n) = 4^n - n^4.
12
1, 3, 0, -17, 0, 399, 2800, 13983, 61440, 255583, 1038576, 4179663, 16756480, 67080303, 268397040, 1073691199, 4294901760, 17179785663, 68719371760, 274877776623, 1099511467776, 4398046316623, 17592185810160, 70368743897823, 281474976378880, 1125899906451999
OFFSET
0,2
FORMULA
G.f.: (1-6*x+3*x^2+23*x^3+48*x^4+3*x^5)/((1-4*x)*(1-x)^5).
E.g.f.: exp(4*x)-(x^4+6*x^3+7*x^2+x)*exp(x). - Robert Israel, Dec 29 2014
MAPLE
seq(4^n - n^4, n=0..50); # Robert Israel, Dec 29 2014
MATHEMATICA
lst={}; Do[AppendTo[lst, 4^n-n^4], {n, 0, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 15 2009 *)
Table[4^n-n^4, {n, 0, 40}] (* Harvey P. Dale, Nov 10 2019 *)
PROG
(Magma) [4^n-n^4: n in [0..30]]; // Vincenzo Librandi, May 14 2011
CROSSREFS
KEYWORD
sign
STATUS
approved