login
A341166
Number of partitions of n into 8 distinct nonzero decimal palindromes.
5
1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 4, 4, 6, 7, 8, 8, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 10, 11, 11, 11, 11, 11, 12, 12, 13, 14, 15, 16, 19, 20, 22, 24, 25, 27, 28, 29, 29, 30, 29, 31, 30, 30, 30, 30, 31, 31, 32, 33, 34, 35, 39, 39
OFFSET
36,4
LINKS
MAPLE
p:= proc(n) option remember; local i, s; s:= ""||n;
for i to iquo(length(s), 2) do if
s[i]<>s[-i] then return false fi od; true
end:
h:= proc(n) option remember; `if`(n<1, 0,
`if`(p(n), n, h(n-1)))
end:
b:= proc(n, i, t) option remember; `if`(n=0, 1, `if`(t*i<n,
0, b(n, h(i-1), t)+b(n-i, h(min(n-i, i-1)), t-1)))
end:
a:= n-> (k-> b(n, h(n), k)-b(n, h(n), k-1))(8):
seq(a(n), n=36..105); # Alois P. Heinz, Feb 06 2021
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Feb 06 2021
STATUS
approved