OFFSET
1,3
COMMENTS
Equals column 3 of triangle A110200.
FORMULA
G.f.: x^3*(49-396*x+1140*x^2-1360*x^3+576*x^4)/((1-x)^3*(1-2*x)^2*(1-4*x)^3).
EXAMPLE
For n=4, the sum of the squares of numbers < 2^4
having exactly 3 ones in their binary digits is:
a(4) = 7^2 + 11^2 + 13^2 + 14^2 = 535.
PROG
(PARI) {a(n)=polcoeff(x^3*(49-396*x+1140*x^2-1360*x^3+576*x^4)/ ((1-x)^3*(1-2*x)^2*(1-4*x)^3+x*O(x^n)), n)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 16 2005
STATUS
approved