A095263
a(n+3) = 3*a(n+2) - 2*a(n+1) + a(n).
Original entry on oeis.org
1, 3, 7, 16, 37, 86, 200, 465, 1081, 2513, 5842, 13581, 31572, 73396, 170625, 396655, 922111, 2143648, 4983377, 11584946, 26931732, 62608681, 145547525, 338356945, 786584466, 1828587033, 4250949112, 9882257736, 22973462017, 53406819691
Offset: 1
a(9) = 1081 = 3*465 - 2*200 + 86.
M^9 * [1 0 0] = [a(7) a(8) a(9)] = [200 465 1081].
G.f. = x + 3*x^2 + 7*x^3 + 16*x^4 + 37*x^5 + 86*x^6 + 200*x^7 + ...
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
- C. R. Dedrickson III, Compositions, Bijections, and Enumerations Thesis, Jack N. Averitt College of Graduate Studies, Georgia Southern University, 2012.
- Index entries for linear recurrences with constant coefficients, signature (3,-2,1).
-
I:=[1,3,7]; [n le 3 select I[n] else 3*Self(n-1) -2*Self(n-2) +Self(n-3): n in [1..30]]; // G. C. Greubel, Apr 12 2021
-
A:= gfun:-rectoproc({a(n+3)=3*a(n+2)-2*a(n+1)+a(n),a(1)=1,a(2)=3,a(3)=7},a(n),remember):
seq(A(n),n=1..100); # Robert Israel, Sep 15 2014
-
a[1]=1; a[2]=3; a[3]=7; a[n_]:= a[n]= 3a[n-1] -2a[n-2] +a[n-3]; Table[a[n], {n, 22}] (* Or *)
a[n_]:= (MatrixPower[{{0,1,2,3}, {1,2,3,0}, {2,3,0,1}, {3,0,1,2}}, n].{{1}, {0}, {0}, {0}})[[2, 1]]; Table[ a[n], {n, 22}] (* Robert G. Wilson v, Jun 16 2004 *)
RecurrenceTable[{a[1]==1,a[2]==3,a[3]==7,a[n+3]==3a[n+2]-2a[n+1]+a[n]},a,{n,30}] (* Harvey P. Dale, Sep 17 2022 *)
-
[sum( binomial(n+k+1,3*k+2) for k in (0..(n-1)//2)) for n in (1..30)] # G. C. Greubel, Apr 12 2021
A097550
Number of positive words of length n in the monoid Br_3 of positive braids on 4 strands.
Original entry on oeis.org
1, 3, 8, 19, 44, 102, 237, 551, 1281, 2978, 6923, 16094, 37414, 86977, 202197, 470051, 1092736, 2540303, 5905488, 13728594, 31915109, 74193627, 172479257, 400965626, 932131991, 2166943978, 5037533578, 11710844769, 27224411129, 63289077427
Offset: 0
-
[n le 3 select Fibonacci(2*n) else 3*Self(n-1) -2*Self(n-2) +Self(n-3): n in [1..31]]; // G. C. Greubel, Apr 19 2021
-
a:= n-> (<<1|1|2>>. <<3|1|0>, <-2|0|1>, <1|0|0>>^n)[1$2]:
seq(a(n), n=0..50); # Alois P. Heinz, Jul 24 2008
-
LinearRecurrence[{3,-2,1},{1,3,8},30] (* Harvey P. Dale, Jul 10 2019 *)
-
@CachedFunction
def A095263(n): return sum( binomial(n+j+2, 3*j+2) for j in (0..n//2) )
def A097550(n): return A095263(n) +A095263(n-2)
[A097550(n) for n in (0..30)] # G. C. Greubel, Apr 19 2021
A135364
First column of a triangle - see Comments lines.
Original entry on oeis.org
1, 2, 3, 7, 17, 40, 93, 216, 502, 1167, 2713, 6307, 14662, 34085, 79238, 184206, 428227, 995507, 2314273, 5380032, 12507057, 29075380, 67592058, 157132471, 365288677, 849193147, 1974134558, 4589306057, 10668842202
Offset: 0
-
I:=[3,7,17]; [1,2] cat [n le 3 select I[n] else 3*Self(n-1) -2*Self(n-2) +Self(n-3): n in [1..51]]; // G. C. Greubel, Apr 19 2021
-
a:= n-> `if`(n=0, 1, (<<7|3|2>> .<<3|1|0>, <-2|0|1>, <1|0|0>>^(n-1))[1, 3]):
seq(a(n), n=0..50); # Alois P. Heinz, Jul 24 2008
-
LinearRecurrence[{3,-2,1}, {1,2,3,7,17}, 51] (* G. C. Greubel, Oct 11 2016; Apr 19 2021 *)
-
@CachedFunction
def A095263(n): return sum( binomial(n+j+2, 3*j+2) for j in (0..n//2) )
def A135364(n): return 1 if n==0 else 2*A095263(n-1) -3*A095263(n-2) +2*A095263(n-3)
[A135364(n) for n in (0..50)] # G. C. Greubel, Apr 19 2021
A136303
Expansion of g.f. (1 +x^2)/((1-x)^2*(1 -3*x +2*x^2 -x^3)).
Original entry on oeis.org
1, 5, 17, 48, 123, 300, 714, 1679, 3925, 9149, 21296, 49537, 115192, 267824, 622653, 1447533, 3365149, 7823068, 18186475, 42278476, 98285586, 228486323, 531166317, 1234811937, 2870589548, 6673311137, 15513566304, 36064666240, 83840177305
Offset: 0
-
R:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (1+x^2)/((1-x)^2*(1-3*x+2*x^2-x^3)) )); // G. C. Greubel, Apr 19 2021
-
A136303:= n-> -2*(n+2) + add( (5*binomial(n+k+2, 3*k+2) - 4*binomial(n +k+1, 3*k+2) + 2*binomial(n+k, 3*k+2)), k=0..n/2 );
seq(A136303(n), n=0..40); # G. C. Greubel, Apr 19 2021
-
LinearRecurrence[{5,-9,8,-4,1},{1,5,17,48,123},40] (* Harvey P. Dale, Apr 01 2018 *)
-
def A136303_list(prec):
P. = PowerSeriesRing(ZZ, prec)
return P( (1+x^2)/((1-x)^2*(1-3*x+2*x^2-x^3)) ).list()
A136303_list(40) # G. C. Greubel, Apr 19 2021
A136304
Expansion of g.f. (1-z)^2*(1-sqrt(1-4*z))/(2*z*(1 - 3*z + 2*z^2 - z^3)).
Original entry on oeis.org
1, 2, 5, 14, 40, 116, 344, 1047, 3273, 10500, 34503, 115838, 396244, 1377221, 4851665, 17285662, 62173297, 225424527, 822919439, 3021713140, 11151957809, 41340655956, 153853915410, 574593145517, 2152679745351, 8087904580883, 30466311814036, 115036597198845
Offset: 0
-
A034943:= func< n | (&+[Binomial(n+j-1, 3*j): j in [0..Floor(n/2)]]) >;
[(&+[A034943(j+1)*Catalan(n-j): j in [0..n]]): n in [0..35]]; // G. C. Greubel, Apr 19 2021
-
A034943[n_]:= A034943[n]= Sum[Binomial[n+k-1, 3*k], {k, 0, n/2}];
Table[Sum[A034943[j+1]*CatalanNumber[n-j], {j,0,n}], {n,0,35}] (* G. C. Greubel, Apr 19 2021 *)
-
def A034943(n): return sum(binomial(n+j-1,3*j) for j in (0..n//2))
[sum(A034943(j+1)*catalan_number(n-j) for j in (0..n)) for n in (0..35)] # G. C. Greubel, Apr 19 2021
A136305
Expansion of g.f. (3 -x +2*x^2)/(1 -3*x +2*x^2 -x^3).
Original entry on oeis.org
3, 8, 20, 47, 109, 253, 588, 1367, 3178, 7388, 17175, 39927, 92819, 215778, 501623, 1166132, 2710928, 6302143, 14650705, 34058757, 79177004, 184064203, 427897358, 994740672, 2312491503, 5375890523, 12497429235, 29052998162, 67540026539, 157011512528
Offset: 0
-
[n le 3 select 2^(n-1)*(n+2) else 3*Self(n-1) - 2*Self(n-2) +Self(n-3): n in [1..41]]; // G. C. Greubel, Apr 19 2021
-
LinearRecurrence[{3,-2,1}, {3,8,20}, 40] (* G. C. Greubel, Apr 19 2021 *)
CoefficientList[Series[(3-x+2x^2)/(1-3x+2x^2-x^3),{x,0,40}],x] (* Harvey P. Dale, Oct 15 2021 *)
-
@CachedFunction
def a(n): return 2^n*(n+3) if n<3 else sum((-1)^j*(3-j)*a(n-j-1) for j in (0..2))
[a(n) for n in (0..40)] # G. C. Greubel, Apr 19 2021
A137234
Expansion of g.f. 1/((1-x)^2*(1 - 3*x + 2*x^2 - x^3)).
Original entry on oeis.org
1, 5, 16, 43, 107, 257, 607, 1422, 3318, 7727, 17978, 41810, 97214, 226014, 525439, 1221519, 2839710, 6601549, 15346765, 35676927, 82938821, 192809396, 448227496, 1042002541, 2422362052, 5631308596, 13091204252, 30433357644, 70748973053
Offset: 0
-
I:=[1,5,16,43,107]; [n le 5 select I[n] else 5*Self(n-1) -9*Self(n-2) +8*Self(n-3) -4*Self(n-4) +Self(n-5): n in [1..41]]; // G. C. Greubel, Apr 19 2021
-
LinearRecurrence[{5,-9,8,-4,1}, {1,5,16,43,107}, 41] (* G. C. Greubel, Apr 19 2021 *)
CoefficientList[Series[1/((1-x)^2(1-3x+2x^2-x^3)),{x,0,30}],x] (* Harvey P. Dale, Jun 07 2021 *)
-
@CachedFunction
def A095263(n): return sum(binomial(n+j+2, 3*j+2) for j in (0..n//2))
def A137234(n): return -(n+3) + sum( (-1)^j*(4-j)*A095263(n-j) for j in (0..2))
[A137234(n) for n in (0..40)] # G. C. Greubel, Apr 19 2021
Showing 1-7 of 7 results.
Comments