login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A215097 a(n) = n^3 - a(n-2) for n >= 2 and a(0)=0, a(1)=1. 2
0, 1, 8, 26, 56, 99, 160, 244, 352, 485, 648, 846, 1080, 1351, 1664, 2024, 2432, 2889, 3400, 3970, 4600, 5291, 6048, 6876, 7776, 8749, 9800, 10934, 12152, 13455, 14848, 16336, 17920, 19601, 21384, 23274, 25272, 27379, 29600, 31940, 34400, 36981, 39688, 42526 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..43.

Index entries for linear recurrences with constant coefficients, signature (4,-7,8,-7,4,-1).

FORMULA

G.f.: (x+4*x^2+x^3)/((-1+x)^4*(1+x^2)). - David Scambler, Aug 06 2012

a(n) = (n*(n^2-3)-(1-(-1)^n)*i^(n+1))/2, where i=sqrt(-1). - Bruno Berselli, Aug 07 2012

MATHEMATICA

RecurrenceTable[{a[0] == 0, a[1] == 1, a[n] == n^3 - a[n - 2]}, a[n], {n, 0, 43}] (* Bruno Berselli, Aug 07 2012 *)

PROG

(Python)

prpr = 0

prev = 1

for n in range(2, 77):

    print prpr,

    curr = n*n*n - prpr

    prpr = prev

    prev = curr

CROSSREFS

Cf. A000217 (n^2 - a(n-1)).

Cf. A125577 (n^2 - a(n-1) with a(0)=1).

Cf. A011934 (n^3 - a(n-1)).

Cf. A153026 (n^3 - a(n-1) with a(1)=0).

Cf. A194274 (n^2 - a(n-2)).

Cf. A187093 (n^2 - a(n-2) with a(0)=a(1)=1, a(-1)=0).

Cf. A107386 ((n-2)^2 - a(n-1) with a(0)=0, a(1)=a(2)=1, a(3)=2).

Cf. A206481 ((n-1)^3 - a(n-2)).

Sequence in context: A225274 A085690 A005897 * A111694 A129111 A002413

Adjacent sequences:  A215094 A215095 A215096 * A215098 A215099 A215100

KEYWORD

nonn,easy

AUTHOR

Alex Ratushnyak, Aug 03 2012

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified December 13 09:05 EST 2017. Contains 295957 sequences.