|
|
A328332
|
|
Expansion of (1 + 4*x - 5*x^2 + 10*x^3) / ((1 - x) * (1 - 10*x^2)).
|
|
2
|
|
|
1, 5, 10, 60, 110, 610, 1110, 6110, 11110, 61110, 111110, 611110, 1111110, 6111110, 11111110, 61111110, 111111110, 611111110, 1111111110, 6111111110, 11111111110, 61111111110, 111111111110, 611111111110, 1111111111110, 6111111111110, 11111111111110, 61111111111110, 111111111111110
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Number of odd palindromes <= 10^n.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 + 4*x - 5*x^2 + 10*x^3) / ((1 - x) * (1 - 10*x^2)).
|
|
MATHEMATICA
|
nmax = 28; CoefficientList[Series[(1 + 4 x - 5 x^2 + 10 x^3) / ((1 - x) (1 - 10 x^2)), {x, 0, nmax}], x]
Join[{1}, LinearRecurrence[{1, 10, -10}, {5, 10, 60}, 28]]
|
|
PROG
|
(PARI) Vec((1 + 4*x - 5*x^2 + 10*x^3) / ((1 - x) * (1 - 10*x^2)) + O(x^30)) \\ Michel Marcus, Oct 13 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|