OFFSET
0,4
COMMENTS
A sawtooth pattern of length 1 is UD not followed by UD.
First differences of A024482.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
FORMULA
From G. C. Greubel, Apr 03 2024: (Start)
G.f.: (1-x)^2*(1 - sqrt(1-4*x))/(2*sqrt(1-4*x)).
E.g.f.: -(1/4)*(2-4*x+x^2) + (1/12)*Exp(2*x)*((6-12*x+43*x^2-24*x^3) *BesselI(0, 2*x) - 4*x*(7-5*x)*BesselI(1,2*x) - 3*x^2*(13-8*x)* BesselI(2,2*x)). (End)
MAPLE
a:= proc(n) option remember; `if`(n<4, [0, 1, 1, 5][n+1],
(n-1)*(3*n-4)*(4*n-10)*a(n-1)/(n*(n-2)*(3*n-7)))
end:
seq(a(n), n=0..30); # Alois P. Heinz, Apr 24 2013
MATHEMATICA
Join[{0, 0, 1}, Table[(Binomial[2n, n]-Binomial[2n-2, n-1])/2, {n, 2, 25}]] // Differences (* Jean-François Alcover, Nov 12 2020 *)
PROG
(Magma)
A024482:= func< n | (3*n-2)*Catalan(n-1)/2 >;
[A225015(n): n in [0..40]]; // G. C. Greubel, Apr 03 2024
(SageMath)
def A024482(n): return (3*n-2)*catalan_number(n-1)/2
[A225015(n) for n in range(41)] # G. C. Greubel, Apr 03 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
David Scambler, Apr 23 2013
STATUS
approved