OFFSET
0,4
COMMENTS
The binary weight of n^3.
LINKS
FORMULA
a(n) = [x^(n^3)] (1/(1 - x))*Sum_{k>=0} x^(2^k)/(1 + x^(2^k)). - Ilya Gutkovskiy, Mar 27 2018
MAPLE
A192085 := proc(n) return add(b, b=convert(n^3, base, 2)): end: seq(A192085(n), n=0..100); # Nathaniel Johnston, Jun 23 2011
PROG
(Magma) [&+Intseq(n^3, 2): n in [0..79]]; // Bruno Berselli, Jun 24 2011
(Python)
def A192085(n):
....return bin(n**3).count('1') # Chai Wah Wu, Sep 03 2014
(PARI) a(n)=hammingweight(n^3) \\ Charles R Greathouse IV, Sep 27 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Carl R. White, Jun 23 2011
STATUS
approved