login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

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 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A024039 a(n) = 4^n - n^3. 2
1, 3, 8, 37, 192, 899, 3880, 16041, 65024, 261415, 1047576, 4192973, 16775488, 67106667, 268432712, 1073738449, 4294963200, 17179864271, 68719470904, 274877900085, 1099511619776, 4398046501843, 17592186033768, 70368744165497, 281474976696832 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..500

Index entries for linear recurrences with constant coefficients, signature (8, -22, 28, -17, 4).

FORMULA

G.f.: (-1 - 5*x^4 - 11*x^3 - 6*x^2 + 5*x)/((4*x-1)*(x-1)^4). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 13 2009

a(n) = 8*a(n-1) - 22*a(n-2) + 28*a(n-3) - 17*a(n-4) + 4*a(n-5); a(0)=1, a(1)=3, a(2)=8, a(3)=37, a(4)=192. - Harvey P. Dale, Jul 26 2011

MATHEMATICA

Table[4^n-n^3, {n, 0, 30}] (* or *) LinearRecurrence[{8, -22, 28, -17, 4}, {1, 3, 8, 37, 192}, 31] (* Harvey P. Dale, Jul 26 2011 *)

PROG

(MAGMA) [4^n-n^3: n in [0..30]]; // Vincenzo Librandi, Jul 02 2011

CROSSREFS

Sequence in context: A111543 A276939 A188327 * A147523 A123981 A123985

Adjacent sequences:  A024036 A024037 A024038 * A024040 A024041 A024042

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Harvey P. Dale, Jul 26 2011

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 9 04:45 EST 2021. Contains 349626 sequences. (Running on oeis4.)