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.

Previous Showing 11-13 of 13 results.

A214609 Table of numbers of distinct bracelets (reversible necklaces) with n beads corresponding to one partition P of n. Each part p of P corresponds to p beads of a distinct color.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 3, 2, 2, 1, 1, 12, 6, 4, 2, 2, 1, 1, 60, 30, 16, 11, 10, 6, 3, 3, 3, 1, 1, 360, 180, 90, 48, 60, 30, 18, 10, 15, 9, 4, 3, 3, 1, 1, 2520, 1260, 630, 318, 171, 420, 210, 108, 70, 38, 105, 54, 33, 19, 8, 21, 12, 5, 4, 4, 1, 1, 20160, 10080, 5040, 2520, 1272, 3360, 1680, 840, 432, 560, 280, 94, 840, 420, 216, 140, 76, 38, 168, 84, 48, 28, 10, 28, 16, 7, 4, 4, 1, 1
Offset: 1

Views

Author

Washington Bomfim, Jul 22 2012

Keywords

Examples

			Table begins
   1
   1,1
   1,1,1
   3,2,2,1,1
  12,6,4,2,2,1,1
   ...
Line number 4 is 3,2,2,1,1 because three bracelets, (0 1 2 3), (0 1 3 2), and (0 2 1 3) correspond to partition [1 1 1 1]. (The colors are denoted by 0,1,2, and 3.) Bracelets (0 0 1 2), and (0 1 0 2) which have two beads of color 0, one of color 1, and one of color 2, correspond to [2 1 1]. (0 0 1 1), and (0 1 0 1) => [2 2]; (0 0 0 1) => [3 1], and (0 0 0 0) => [4].
From _Marko Riedel_, Jan 23 2025 (Start)
The ordering of the partitions used here is graded reflected lexicographic illustrated below with n=5:
  1,1,1,1,1 => 12
  1,1,1,2 => 6
  1,2,2 => 4
  1,1,3 => 2
  2,3 => 2
  1,4 => 1
  5 => 1 (End)
		

Crossrefs

Cf. A000041 (row lengths), A213939 (another version with partitions found in a different order), A005654, A005656, A141783, A000010, A380401.
Row sums give A213943.
Cf. A080576 (graded reflected lexicographic order).

Programs

  • PARI
    N; L = 0; max_n = 25;
    x = vector(max_n+1); P = vector(max_n+1);          \\ P - partition of n
    gcdP(t) = {if(t == 2, return(P[2])); GCD = gcd(P[2], P[3]);
    for(J = 4, t, GCD = gcd(GCD, P[J])); return(GCD) }
    x_P_div_d(t, d) = for(J = 2, t, x[J] = P[J]/d);
    F(a, t)= { b = x[2]!; for(J = 3, t, b *= x[J]!); return(a!/b) }
    Sum(t) = { S = 0; GCD = gcdP(t);
    fordiv(GCD, d, x_P_div_d(t,d); S+= eulerphi(d) * F(N/d, t)); return(S) }
    OneOdd(t) = {K = 0; for(J = 2, t, if(P[J] % 2 == 1, K++)); return(K==1)}
    TwoOdd(t) = {K = 0; for(J = 2, t, if(P[J] % 2 == 1, K++)); return(K==2)}
    x_floor_P_div_2(t) = for(J = 2, t, x[J] = floor(P[J]/2));
    all_even_parts(t) = { for(J = 2, t, if(P[J] % 2 == 1, return(0) ) ); return(1) }
    x_P_div_2(t) = for(J = 2, t, x[J] = P[J]/2);
    \\
    A(t) = {S = Sum(t); L++;
    if((N%2==1) && OneOdd(t), x_floor_P_div_2(t);
       print(L," ",(S + N * F((N-1)/2, t))/(2*N)); return() );
    if(N%2==1, print(L," ", S/(2*N)); return() );
    if(all_even_parts(t), x_P_div_2(t);
       print(L," ",(S + N * F(N/2, t))/(2*N)); return() );
    if((N%2==0) &&  TwoOdd(t), x_floor_P_div_2(t);
       print(L," ",(S + N * F((N-2)/2, t))/(2*N)); return() );
    print(L," ", S/(2*N)) }
                                                \\ F. Ruskey algorithm 4.24
    Part(n, k, t) = { P[t] = k;
    if(n == k, A(t), for(j = 1, min(k, n-k), Part(n-k, j, t+1) ) )}
    for(n = 1, max_n, N = n; Part(2*n, n, 1) );  \\ b-file format

Formula

With S = Sum_( d | GCD of the parts of P ) { phi(d) * F(n/d, P/d) },
| (S+n*F((n-1)/2, [P/2]))/(2*n) if odd n, and only 1 odd part in P,
| S/(2*n) if odd n, and other P,
| (S + n * F(n/2, P/2)) / (2*n) if P has all even parts,
a(n)=| (S + n * F((n-2)/2, [P/2])) / (2*n)
| if even n, and P has exactly two odd parts,
| S/(2*n) if even n, and other P.
Where P is a partition of n, P/d is a vector of all the parts of P divided by d. Each element of vector [P/2] is equal to floor(p/2), p one part of P, and F(x,Y) = x! / (Y_1! * Y_2! * ...).

A214308 a(n) is the number of all two colored bracelets (necklaces with turning over allowed) with n beads with the two colors from a repertoire of n distinct colors, for n>=2.

Original entry on oeis.org

1, 6, 24, 60, 165, 336, 784, 1584, 3420, 6820, 14652, 29484, 62335, 128310, 269760, 558960, 1175499, 2446668, 5131900, 10702020, 22385517, 46655224, 97344096, 202555800, 421478200, 875297124, 1816696728, 3764747868, 7795573230, 16121364000, 33310887808
Offset: 2

Views

Author

Wolfdieter Lang, Jul 31 2012

Keywords

Comments

This is the second column (m=2) of triangle A214306.
Each 2 part partition of n, with the parts written in nonincreasing order, defines a color signature. For a given color signature, say [p[1], p[2]], with p[1] >= p[2] >= 1, there are A213941(n,k)= A035206(n,k)*A213939(n,k) bracelets if this signature corresponds (with the order of the parts reversed) to the k-th partition of n in Abramowitz-Stegun (A-St) order. See A213941 for more details. Here all p(n,2)= A008284(n,2) = floor(n/2) partitions of n with 2 parts are considered. The color repertoire for a bracelet with n beads is [c[1], ..., c[n]].
Compare this sequence with A000029 where also single colored bracelets are included, and the color repertoire is only [c[1], c[2]] for all n.

Examples

			a(5) = A213941(5,2) + A213941(5,3) = 20 + 40 = 60 from the bracelet (with colors j for c[j], j=1,2,..,5) cyclic(11112) which represents a class of order A035206(5,2) = 20 (if all 5 colors are used), cyclic(11122) and cyclic(11212) each representing also a color class of 20 members each, summing to 60 bracelets  with five beads and five colors available for the two color signatures [4,1] and [3,2].
		

Crossrefs

Cf. A213941, A214306, A213942 (m=2, representative bracelets), A214310 (m=3).

Formula

a(n) = A214306(n,2), n >= 2.
a(n) = sum(A213941(n,k),k=2..A008284(n,2)+1), n>=2, with A008284(n,2) = floor(n/2).
a(n) = binomial(n,2) * A056342(n). - Andrew Howroyd, Mar 25 2017

Extensions

a(25)-a(32) from Andrew Howroyd, Mar 25 2017

A292223 a(n) is the number of representative six-color bracelets (necklaces with turning over allowed; D_6 symmetry) with n beads, for n >= 6.

Original entry on oeis.org

60, 180, 1050, 5040, 29244, 161340, 1046250, 4825800, 27790266, 145126548, 843333015, 4466836920, 26967624184, 137243187108, 789854179074, 4306147750200, 24711052977222, 134216193832908, 797987818325009, 4240082199867228
Offset: 6

Views

Author

Wolfdieter Lang, Sep 30 2017

Keywords

Comments

This is the sixth column (m = 6) of triangle A213940.
The relevant p(n,6)= A008284(n, 6) representative color multinomials have exponents (signatures) from the six-part partitions of n, written with nonincreasing parts. E.g., n = 8: [3,1,1,1,1,1] and [2,2,1,1,1,1] (p(8,6)=2). The corresponding representative bracelets have the six-color multinomials c[1]^3*c[2]*c[3]*c[4]*c[5]*c[6] and c[1]^2*c[2]^2*c[3]*c[4]*c[5]*c[6].
See A056361 for the numbers if also color permutations for D_6 inequivalent bracelets are allowed. (Andrew Howroyd induced me to look at these bracelets.)

Examples

			a(6) = A213940(6,6) = A213939(6, 11) = 60 from the representative bracelets (with colors j for c(j), j=1..6) permutations of (1, 2, 3, 4, 5, 6) modulo D_6 (dihedral group) symmetry, i.e., modulo cyclic or anti-cyclic operations. E.g., (1, 2, 3, 4, 6, 5) == (2, 3, 4, 6, 5, 1) == (6, 4, 3, 2, 1, 5) == ..., but (1, 2, 3, 4, 6, 5) is not equivalent to (1, 2, 3, 4, 5, 6). If color permutation is also allowed, then there is only one possibility (see A056361(6) = 1).
		

Crossrefs

Formula

a(n) = A213940(n, 6), n >= 6.
a(n) = Sum_{k=b(n, 6)..b(n, 7)-1} A213939(n, k), for n >= 7, with b(n, m) = A214314(n, m) the position where the first m-part partition of n appears in the Abramowitz-Stegun ordering of partitions (see A036036 for the reference and a historical comment), and a(6) = A213939(6, b(6,6)) = A213939(6, 11) = 60.
Previous Showing 11-13 of 13 results.