A127916 Number of n-digit palindromes in bases 2 and 10. Also difference of A120764(n).
6, 2, 3, 2, 6, 1, 7, 1, 3, 2, 4, 2, 10, 1, 2, 2, 7, 2, 2, 3, 2, 0, 4, 0, 6, 1, 6, 1, 5, 1, 2, 0, 3
Offset: 1
Examples
Palindromes in bases 2 and 10 are (A007632): 0, 1, 3, 5, 7, 9, 33, 99, 313, 585, 717, 7447, 9009, 15351, 32223... So a(1)=6 one-digit numbers, a(2)=2 two-digit palindromes and so on.
Links
- P. De Geest, Palindromic numbers beyond base 10
- Charlton Harrison, Binary/Decimal Palindromes