%I #19 Apr 23 2020 20:02:22
%S 0,1,8,26,63,124,214,341,510,726,997,1328,1724,2193,2740,3370,4091,
%T 4908,5826,6853,7994,9254,10641,12160,13816,15617,17568,19674,21943,
%U 24380,26990,29781,32758,35926,39293
%N n^3 - floor( n/3 ).
%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,2,-3,3,-1).
%F 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
%F a(n) = A000578(n)- A002264(n). - _Michel Marcus_, Jun 19 2013
%t 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 *)
%o (PARI) a(n) = n^3 - floor( n/3 ) \\ _Michel Marcus_, Jun 19 2013
%K nonn,easy
%O 0,3
%A ochavez(AT)spin.com.mx (Oscar Chavez)