|
|
A291292
|
|
Necklace Catalan numbers.
|
|
2
|
|
|
1, 1, 1, 3, 10, 34, 116, 396, 1353, 4631, 15895, 54757, 189465, 658835, 2303381, 8098783, 28642314, 101894922, 364614216, 1312191768, 4748561094, 17275277322, 63163858146, 232041604038, 856219298484, 3172442815476, 11799466553232, 44041859928944, 164924424558532, 619454123593948
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
COMMENTS
|
The n-th term is the number of ways to 'parenthesize' n beads arranged on a necklace. This can be proved.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3^(n-2) + (Sum_{i=0..n-4} 3^i*(2*(n-i-3))/((n-i-1)*(n-i))*binomial(2*(n-i-2), n-i-2)), for n >= 4. Initial terms are a(1)=a(2)=1, a(3)=3.
a(n) = (3^(n-2) + (-4)^n*binomial(3/2, n)*((4/3)*n - 2 + hypergeom([1, -n], [5/2 - n], 3/4)))/2) for n >= 3.
a(n) = [x^n] (3/2) + (x - sqrt(1 - 4*x))*(2*x - 1)/(6*x - 2). (End)
Recurrence: 12*(2*n-7)*(n-4)*a(n-3) + (-158*n^2+744*n-862)*a(n-2) + 2*(n-1)*(79*n-143)*a(n-1) - 6*n*(11*n-9)*a(n) + (n+1)*(13*n+2)*a(n+1) - (n+1)*(n+2)*a(n+2) = 0. - Georg Fischer, Oct 21 2022
|
|
MAPLE
|
a:=n->`if`(n<=2, 1, `if`(n=2, 3, 3^(n-2)+add((3^i)*(2*(n-i-3))/((n-i-1)*(n-i))*binomial(2*(n-i-2), n-i-2), i=0..n-4))); seq(a(n), n=0..30); # Muniru A Asiru, Oct 05 2018
# Alternative:
ogf := x -> 3/2 + (x - sqrt(1 - 4*x))*(2*x - 1)/(6*x - 2):
ser := series(ogf(x), x, 32):
# Derivation of the recurrence (requires Maple 2022):
FormalPowerSeries:-FindRE(3/2 + (x - sqrt(1 - 4*x))*(2*x - 1)/(6*x - 2), x, a(n)); # Georg Fischer, Oct 21 2022
|
|
MATHEMATICA
|
Flatten[{1, 1, Table[3^(n - 2) + Sum[3^i*2*(n - i - 3)/((n - i - 1)*(n - i)) * Binomial[2*(n - i - 2), n - i - 2], {i, 0, n - 4}], {n, 2, 30}]}] (* Vaclav Kotesovec, Oct 22 2018 *)
|
|
PROG
|
(PARI) a(n) = if (n<=2, 1, if (n==2, 3, 3^(n-2) + sum(i=0, (n-4), (3^i)*(2*(n-i-3))/((n-i-1)*(n-i))*binomial(2*(n-i-2), n-i-2)))); \\ Michel Marcus, Oct 05 2018
(GAP) Concatenation([1, 1, 1, 3], List([4..30], n->3^(n-2)+(Sum([0..n-4], i->(3^i)*(2*(n-i-3))/((n-i-1)*(n-i))*Binomial(2*(n-i-2), n-i-2))))); # Muniru A Asiru, Oct 05 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|