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

A002901
n^3 - floor( n/3 ).
0
0, 1, 8, 26, 63, 124, 214, 341, 510, 726, 997, 1328, 1724, 2193, 2740, 3370, 4091, 4908, 5826, 6853, 7994, 9254, 10641, 12160, 13816, 15617, 17568, 19674, 21943, 24380, 26990, 29781, 32758, 35926, 39293
OFFSET
0,3
FORMULA
G.f. x*(1+5*x+5*x^2+7*x^3) / ( (1+x+x^2)*(x-1)^4 ). - R. J. Mathar, Mar 08 2013
a(n) = A000578(n)- A002264(n). - Michel Marcus, Jun 19 2013
MATHEMATICA
Table[n^3-Floor[n/3], {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 2, -3, 3, -1}, {0, 1, 8, 26, 63, 124}, 40] (* Harvey P. Dale, Apr 23 2020 *)
PROG
(PARI) a(n) = n^3 - floor( n/3 ) \\ Michel Marcus, Jun 19 2013
CROSSREFS
Sequence in context: A250352 A213039 A211640 * A350163 A213769 A301647
KEYWORD
nonn,easy
AUTHOR
ochavez(AT)spin.com.mx (Oscar Chavez)
STATUS
approved