login
A076879
In binary representation: number of substrings of n^2 having the same number of 0's and 1's as n.
0
1, 1, 0, 1, 1, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0, 1, 1, 2, 3, 1, 3, 2, 0, 1, 4, 1, 1, 0, 0, 0, 0, 1, 1, 2, 3, 3, 5, 3, 1, 1, 2, 2, 4, 1, 1, 0, 0, 1, 4, 4, 0, 2, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 3, 5, 5, 3, 2, 5, 3, 0, 2, 4, 2, 0, 1, 3, 1, 4, 1, 1, 3, 1, 1, 3, 2, 0, 0, 0, 0, 0, 1, 4, 4, 0, 3, 2, 0, 0, 3, 1
OFFSET
1,10
EXAMPLE
22->'10110', 22^2=484->'111100100': a(22)=2, as there are two substrings of '111100100' having three 1's ano two 0's as '10110': '.11100...' and '..11001..'
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 25 2002
STATUS
approved