login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A024026 a(n) = 3^n - n^3. 15
1, 2, 1, 0, 17, 118, 513, 1844, 6049, 18954, 58049, 175816, 529713, 1592126, 4780225, 14345532, 43042625, 129135250, 387414657, 1162254608, 3486776401, 10460343942, 31381048961, 94143166660, 282429522657, 847288593818 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: (-1 + 5*x - 5*x^2 - 7*x^3 - 4*x^4)/((3*x-1)*(x-1)^4). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 14 2009
MAPLE
seq(3^n-n^3, n=0..25); # Zerinvary Lajos, Jul 01 2007
MATHEMATICA
lst={}; Do[AppendTo[lst, (3^n-n^3)], {n, 0, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 15 2009 *)
PROG
(Magma) [3^n-n^3: n in [0..30]]; // Vincenzo Librandi, May 14 2011
(PARI) a(n)=3^n-n^3 \\ Charles R Greathouse IV, Jul 02 2013
CROSSREFS
Sequence in context: A361718 A355565 A202700 * A355006 A269946 A009829
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 18:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)