I believe the number of palindromes that do not include 0 and sum to even $n$, such as $1+1+2+1+1=6$, is equal to $2^{n/2}$. I think this because if we consider the first half of the palindrome:
- if the palindrome is even-length, we can either apply stars-and-bars for a sum over the number of bars like $\binom 2 0 + \binom 2 1 + \binom 2 2$, or consider binary choices of whether to include a divider/bar of the $n/2 - 1$ bars. This gives us $2^{n/2-1}$ even-length palindromes
- every odd-length palindrome has a value that spans the halfway point of the palindrome, like $1+4+1 = 1+2+2+1$, and corresponds to an even-length palindrome
So the number of palindromes is $2 \times 2^{n/2-1} = 2^{n/2}$.
First I would like to verify if this reasoning is correct and if there is a simpler interpretation. Maybe the bars can be placed directly without appealing to splitting the palindrome in half? My main question is on how to apply this logic of spanning the halfway point for odd-sum palindromes, like $1,3,1$. If we try to divide the palindrome evenly in half we get a sum like $1 + 1.5 + 1.5 + 1$. I think the same logic of considering the first half of the palindrome applies, but we also consider the middle digit, that is $\displaystyle\frac{n+1}{2}$ digits?
I found out from A016116 these are called symmetric compositions of $n$. My logic applies to even and odd sums based on placing dividers, for example $n=5$:
$$1\ |\ 1\ |\ 1 \ |\ 1\ |\ 1$$
Choosing whether or not to place the first two dividers (or replacing them with $+$) determines the last two, so there are $2^2=4$ palindromes.