cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A277081 Irregular triangle read by rows: T(n,k) = number of size k subsets of S_n that remain unchanged under the operation of replacing a permutation with its inverse.

This page as a plain text file.
%I A277081 #31 Feb 03 2021 21:46:53
%S A277081 1,1,1,1,1,2,1,1,4,7,8,7,4,1,1,10,52,190,546,1302,2660,4754,7535,
%T A277081 10692,13672,15820,16604,15820,13672,10692,7535,4754,2660,1302,546,
%U A277081 190,52,10,1,1,26,372,3822,31306,216086,1300420,6981650,33992275,151945820
%N A277081 Irregular triangle read by rows: T(n,k) = number of size k subsets of S_n that remain unchanged under the operation of replacing a permutation with its inverse.
%C A277081 T(n,k) is the number of size k subsets of S_n that remain unchanged under the operation of replacing a permutation with its inverse.
%H A277081 Andrew Howroyd, <a href="/A277081/b277081.txt">Table of n, a(n) for n = 0..880</a> (rows 0..6)
%F A277081 T(n,k) = Sum( C((n! - I(n))/2, i)*C(I(n), k - 2*i) for i in [0..floor(k/2)]) where I(n) = A000085(n).
%e A277081 For n = 3 and k = 3 the subsets unchanged by inverse are {213,132,123}, {321,132,123}, {321,213,123}, {231,312,123}, {321,132,213}, {132,312,231},{213,312,231}, {321,231,312} hence T(3,3) = 8. (Here we are using the one-line notation for permutations, not the product of cycles form.)
%e A277081 Triangle starts:
%e A277081 1, 1;
%e A277081 1, 1;
%e A277081 1, 2, 1;
%e A277081 1, 4, 7, 8, 7, 4, 1;
%o A277081 (PARI) \\ here b(n) is A000085(n).
%o A277081 b(n)={sum(k=0, n\2, n!/((n-2*k)!*2^k*k!))}
%o A277081 Row(n)={my(t=b(n)); vector(n!+1, k, k--; sum(i=0, k\2, binomial((n!-t)/2, i)*binomial(t, k-2*i)))}
%o A277081 { for(n=0, 4, print(Row(n))) } \\ _Andrew Howroyd_, Feb 03 2021
%Y A277081 Row lengths give A038507.
%Y A277081 Cf. A000085.
%K A277081 nonn,tabf
%O A277081 0,6
%A A277081 _Christian Bean_, Sep 28 2016