OFFSET
0,4
COMMENTS
Every number n can be written as the sum of four base-2 palindromes.
a(A261678(n)) = 0.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
A. Rajasekaran, J. Shallit, T. Smith, Sums of Palindromes: an Approach via Automata, arXiv:1706.10206 [cs.FL], 2017.
Rémy Sigrist, PARI program for A319439
EXAMPLE
a(13) = 4 because 13 can be written as the sum of three base-2 palindromes in four different ways:
13 = 5 + 5 + 3 = 101_2 + 101_2 + 11_2,
13 = 7 + 3 + 3 = 111_2 + 11_2 + 11_2,
13 = 7 + 5 + 1 = 111_2 + 101_2 + 1_2, and
13 = 9 + 3 + 1 = 1001_2 + 11_2 + 1_2.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Peter Kagey, Sep 18 2018
EXTENSIONS
a(0) corrected by Rémy Sigrist, Sep 19 2018
STATUS
approved