login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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