|
|
A131355
|
|
Partial sums of A065423 plus one.
|
|
2
|
|
|
1, 1, 1, 3, 4, 8, 10, 16, 19, 27, 31, 41, 46, 58, 64, 78, 85, 101, 109, 127, 136, 156, 166, 188, 199, 223, 235, 261, 274, 302, 316, 346, 361, 393, 409, 443, 460, 496, 514, 552, 571, 611, 631, 673, 694, 738, 760, 806, 829, 877, 901, 951, 976, 1028, 1054, 1108
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
COMMENTS
|
Number of 132-avoiding even Grassmannian permutations of size n. - Juan B. Gil, Mar 10 2023
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 - 2*x^2 + 2*x^3 + 2*x^4)/((1+x)^2*(1-x)^3).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5), n > 5. (End)
a(n) = 1 + binomial(n,2) - binomial(floor(n/2)+1,2). - Juan B. Gil, Mar 10 2023
|
|
MAPLE
|
|
|
MATHEMATICA
|
Table[(6 n^2 - 10 n + 17 - (1 + 2 n) (-1)^n)/16, {n, 0, 100}] (* Wesley Ivan Hurt, Jul 28 2015 *)
LinearRecurrence[{1, 2, -2, -1, 1}, {1, 1, 1, 3, 4}, 70] (* Vincenzo Librandi, Jul 29 2015 *)
|
|
PROG
|
(Magma) [(6*n^2-10*n+17-(1+2*n)*(-1)^n)/16: n in [0..70]]; // Vincenzo Librandi, Jul 29 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|