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.

A284949 Triangle read by rows: T(n,k) = number of reversible string structures of length n using exactly k different symbols.

This page as a plain text file.
%I A284949 #48 Nov 05 2019 05:59:25
%S A284949 1,1,1,1,2,1,1,5,4,1,1,9,15,6,1,1,19,50,37,9,1,1,35,160,183,76,12,1,1,
%T A284949 71,502,877,542,142,16,1,1,135,1545,3930,3523,1346,242,20,1,1,271,
%U A284949 4730,17185,21393,11511,2980,390,25,1
%N A284949 Triangle read by rows: T(n,k) = number of reversible string structures of length n using exactly k different symbols.
%C A284949 A string and its reverse are considered to be equivalent. Permuting the colors will not change the structure.
%C A284949 Number of k-block partitions of an n-set up to reflection.
%C A284949 T(n,k) = pi_k(P_n) which is the number of non-equivalent partitions of the path on n vertices, with exactly k parts. Two partitions P1 and P2 of a graph G are said to be equivalent if there is a nontrivial automorphism of G which maps P1 onto P2. - _Mohammad Hadi Shekarriz_, Aug 21 2019
%D A284949 M. R. Nester (1999). Mathematical investigations of some plant interaction designs. PhD Thesis. University of Queensland, Brisbane, Australia. [See A056391 for pdf file of Chap. 2]
%H A284949 Andrew Howroyd, <a href="/A284949/b284949.txt">Table of n, a(n) for n = 1..1275</a>
%H A284949 B. Ahmadi, F. Alinaghipour and M. H. Shekarriz, <a href="https://arxiv.org/abs/1910.12102">Number of Distinguishing Colorings and Partitions</a>, arXiv:1910.12102 [math.CO], 2019.
%H A284949 Mohammad Hadi Shekarriz, <a href="/A284949/a284949.txt">GAP Program</a>
%e A284949 Triangle begins:
%e A284949 1;
%e A284949 1,   1;
%e A284949 1,   2,    1;
%e A284949 1,   5,    4,     1;
%e A284949 1,   9,   15,     6,     1;
%e A284949 1,  19,   50,    37,     9,     1;
%e A284949 1,  35,  160,   183,    76,    12,    1;
%e A284949 1,  71,  502,   877,   542,   142,   16,   1;
%e A284949 1, 135, 1545,  3930,  3523,  1346,  242,  20,  1;
%e A284949 1, 271, 4730, 17185, 21393, 11511, 2980, 390, 25, 1;
%t A284949 (* achiral color patterns for row of n colors containing k different colors *)
%t A284949 Ach[n_, k_] := Ach[n, k] = Switch[k, 0, If[0==n, 1, 0], 1, If[n>0, 1, 0],
%t A284949    (* else *) _, If[OddQ[n],
%t A284949    Sum[Binomial[(n-1)/2, i] Ach[n-1-2i, k-1], {i, 0, (n-1)/2}],
%t A284949    Sum[Binomial[n/2-1, i] (Ach[n-2-2i, k-1] + 2^i Ach[n-2-2i, k-2]),
%t A284949    {i, 0, n/2-1}]]]
%t A284949 Table[(StirlingS2[n, k] + Ach[n, k])/2, {n, 1, 15}, {k, 1, n}] // Flatten
%t A284949 (* _Robert A. Russell_, Feb 10 2018 *)
%o A284949 (PARI) \\ see A056391 for Polya enumeration functions
%o A284949 T(n,k) = NonequivalentStructsExactly(ReversiblePerms(n), k); \\ _Andrew Howroyd_, Oct 14 2017
%o A284949 (PARI) \\ Ach is A304972 as square matrix.
%o A284949 Ach(n)={my(M=matrix(n,n,i,k,i>=k)); for(i=3, n, for(k=2, n, M[i,k]=k*M[i-2,k] + M[i-2,k-1] + if(k>2, M[i-2,k-2]))); M}
%o A284949 T(n)={(matrix(n, n, i, k, stirling(i, k, 2)) + Ach(n))/2}
%o A284949 { my(A=T(10)); for(n=1, #A, print(A[n,1..n])) } \\ _Andrew Howroyd_, Sep 18 2019
%Y A284949 Columns 2..6 are A056326, A056327, A056328, A056329, A056330.
%Y A284949 Row sums are A103293.
%Y A284949 Partial row sums include A005418, A001998(n-1), A056323, A056324, A056325.
%Y A284949 Cf. A277504, A008277 (set partitions), A152175 (up to rotation), A152176 (up to rotation and reflection), A304972 (achiral patterns).
%K A284949 nonn,tabl
%O A284949 1,5
%A A284949 _Andrew Howroyd_, Apr 06 2017