|
|
A032088
|
|
Number of reversible strings with n beads of 5 colors. If more than 1 bead, not palindromic.
|
|
5
|
|
|
5, 10, 50, 300, 1500, 7750, 38750, 195000, 975000, 4881250, 24406250, 122062500, 610312500, 3051718750, 15258593750, 76293750000, 381468750000, 1907347656250, 9536738281250, 47683710937500
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
"BHK" (reversible, identity, unlabeled) transform of 5, 0, 0, 0, ...
a(n) = 5*a(n-1) + 5*a(n-2) - 25*a(n-3) for n > 4.
G.f.: 5*x*(1 - 3*x - 5*x^2 + 25*x^3)/((1 - 5*x)*(1 - 5*x^2)).
(End)
a(n) = 5^(n/2)*(5^(n/2) - 1) / 2 for n > 1 and even.
a(n) = -5*(5^(n/2-1/2) - 5^(n-1)) / 2 for n > 1 and odd.
(End)
The above conjectures are true: The second set follows from the definition and the first set can be derived from that. - Andrew Howroyd, Oct 10 2017
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) a(n) = if(n<2, [5][n], (5^n - 5^(ceil(n/2)))/2); \\ Andrew Howroyd, Oct 10 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|