OFFSET
1,3
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..3000
FORMULA
a(n) = (floor(3*n/2)-2)^3 for n >= 2. - Nathaniel Johnston, May 05 2011
G.f.: x^2*(1+7*x+53*x^2+40*x^3+53*x^4+7*x^5+x^6)/((1+x)^3*(1-x)^4). a(n) = A001651(n-1)^3 for n>1. - Bruno Berselli, May 05 2011
Sum_{n>=2} 1/a(n) = 26*zeta(3)/27. - Amiram Eldar, Dec 19 2020
EXAMPLE
64 is in the sequence because (1) it is a cube and (2) the digital root 1 is also a cube.
MATHEMATICA
Join[{0}, Table[(3*k + {1, 2})^3, {k, 0, 15}] // Flatten] (* Amiram Eldar, Dec 19 2020 *)
PROG
(Magma) [0] cat [(6*n+(-1)^n-9)^3 div 64: n in [2..37]]; // Bruno Berselli, May 05 2011
(PARI) a010888(n)=if(n, (n-1)%9+1)
lista(nn) = {for (n=0, nn, if (ispower(a010888(n^3), 3), print1(n^3, ", ")); ); } \\ Michel Marcus, Feb 18 2015
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 21 2006
STATUS
approved