|
|
A124133
|
|
a(n) = (-1/2)*Sum_{i1 + i2 + i3 = 2*n} ((2*n)!/(i1! i2! i3!))*B(i1), where B are the Bernoulli numbers (with i1, i2, i3 >= 1).
|
|
0
|
|
|
0, 5, 28, 123, 506, 2041, 8184, 32759, 131062, 524277, 2097140, 8388595, 33554418, 134217713, 536870896, 2147483631, 8589934574, 34359738349, 137438953452, 549755813867, 2199023255530, 8796093022185, 35184372088808
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 2^(2*n - 1) - n - 1.
a(n) = 6*a(n-1) - 9*a(n-2) + 4*a(n-3).
G.f.: x^2*(2*x - 5)/((x - 1)^2*(4*x - 1)). (End)
|
|
EXAMPLE
|
For n = 1, a(1) = 0 because there are no integers i1, i2, i3 >= 1 s.t. i1 + i2 + i3 = 2.
For n = 2, a(2) = 5 because we have 1 + 1 + 2 = 1 + 2 + 1 = 2 + 1 + 1 = 4, multinomial(4, [1, 1, 2]) = multinomial(4, [1, 2, 1]) = multinomial(4, [2, 1, 1]) = 12, B(1) = -1/2, and B(2) = 1/6. Thus, a(2) = (-1/2)*(12*(-1/2) + 12*(-1/2) + 12*(1/6)) = 5. (End)
|
|
MATHEMATICA
|
LinearRecurrence[{6, -9, 4}, {0, 5, 28}, 30] (* Harvey P. Dale, Dec 02 2014 *)
|
|
PROG
|
(PARI) a(n)=2^(2*n-1)-n-1
/* Second PARI program using the definition */
lista(nn) = {my(a=vector(nn)); for(n=1, nn, a[n] = (-1/2)*sum(i1=1, 2*n-2, sum(i2=1, 2*n-i1-1, binomial(2*n, i1)*binomial(2*n-i1, i2)*bernfrac(i1)))); a; } \\ Petros Hadjicostas, Jul 25 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|