OFFSET
0,5
COMMENTS
a(2^m) = m, for all m >= 0.
a(2^m-1) = 0 for all m >= 0.
If 2^k is the largest power of 2 that divides n, then a(n) >= k.
EXAMPLE
20 in binary is 10100. This is not a palindrome, so a(20) > 0. Removing one 0 gets either 1100 or 1010 (the latter in two ways). Neither of these is a palindrome, so a(20)>1. But removing the last two 0's so that we have 101 does indeed leave a palindrome. So a(20) = 2.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Mar 18 2010
EXTENSIONS
Extended by D. S. McNeil, May 10 2010
STATUS
approved