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.

User: Constantinos Kourouzides

Constantinos Kourouzides's wiki page.

Constantinos Kourouzides has authored 2 sequences.

A382023 Number of distinct half sets in Q_n containing only pairs of antipodal vertices with the property that they form an equitable partition with their complement and are interchangable under a group automorphism of the hypercube graph.

Original entry on oeis.org

0, 1, 3, 19, 75, 391
Offset: 1

Author

Keywords

Comments

Let Q(n) be the standard n-dimensional hypercube graph. Two vertices x and y in Q(n) are called "opposites" if they differ in every bit. A "pairs-only half-set" in Q(n) is a subset S of size 2^(n-1) such that for every pair of opposite vertices, S either contains both of them or contains neither. By distinct half sets, we mean that any set is being counted along with its complement only once.
We say S is "equitable" if all vertices in S have the same number of neighbors inside S, and all vertices in the complement of S have the same number of neighbors inside that complement.
Define a(n) as the number of pairs-only half-sets S that are equitable and admit an automorphism of Q(n) (a combination of bitwise XOR by a mask and a permutation of the n coordinates) mapping S onto its complement. In this context, an "n-bit mask", m, means a fixed n-bit binary string. To "bitwise XOR by a mask" means: for each vertex x (which is itself an n-bit string), we look at the bits of m. Wherever m has a 1 bit, we flip (invert) that corresponding bit in x; wherever m has a 0 bit, we leave that bit in x unchanged. Thus, an automorphism of Q(n) is any combination of: 1) Bitwise XOR by an n-bit mask (flip certain bits in every vertex), and 2) A permutation of the n coordinate positions (re-label the bits in each vertex).
A specialized C++ program enumerates all distinct pairs-only half-sets, for Q(1) up to Q(6), checks which are equitable, and then tests whether they can be mapped to their complements by such an automorphism. It also checks for isomorphism using the degree sequence (which is not sufficient for isomorphism), but since a set passes the test through the existence of an automorphism, the isomorphism follows as a by-product.

Examples

			The number of distinct, pairs-only half-sets in Q(3) with the desired properties is 3.
We label the vertices of the 3-dimensional hypercube Q(3) by these eight binary strings of length 3: 000, 001, 010, 011, 100, 101, 110, 111.
A half-set in Q(3) must contain a total of 4 vertices. We are interested in picking only opposite pairs of vertices. There are exactly three such half-sets that satisfy the following conditions: (1) each half-set and its complement form an "equitable" partition (every vertex in the set has the same number of neighbors in the set, and similarly for every vertex in the complement), (2) the induced subgraphs of the set and its complement are isomorphic, and (3) there is an automorphism of Q(3) that sends the set to its complement.
Those three half-sets are:
  A = 000, 111, 101, 010
  B = 100, 011, 101, 010
  C = 000, 111, 100, 011
They satisfy the conditions because:
In cases A, B and C, the subgraphs induced by each of the sets, forms two disjoint edges, and the complement also forms two disjoint edges. This means every vertex in the set has exactly one neighbor in the set, and the same applies to the complement, so the partition is equitable. Both subgraphs are therefore isomorphic (they are the same shape).
Each of these sets can be mapped to its complement by adding a particular binary vector of length 3 to all its elements. For instance, if we add the binary vector 001 to each vertex of set A, we obtain exactly A's complement. A similar approach works for B and C.
		

A370656 Number of cross-equivalence classes of the symmetric group S_n, where two permutations are cross-equivalent if the multiset of forward distances for every element i in the permutation, for 1 <= i <= n-1, up to and including n, is the same.

Original entry on oeis.org

1, 1, 1, 2, 5, 21, 108, 737, 5795, 53635, 549777, 6294420
Offset: 0

Author

Keywords

Comments

The equivalence classes are defined based on a problem described on page 10 of the paper "On super-strong Wilf equivalence classes of permutations" by Ioannis Michos, Christina Savvidou, and Demetris Hadjiloucas, The Electronic Journal of Combinatorics 25 (2) (2018). For each permutation of n elements, distances are calculated as the absolute difference in positions for each pair of elements. For each element in a permutation of S_n, that is less than or equal to n-1, one calculates the absolute difference with every other element that comes after it. Permutations are then grouped into equivalence classes when their multisets of distances match. The sequence was generated using a Python as well as a C++ program. The program enumerates all permutations of n elements and classifies them into these equivalence classes.

Examples

			a(4)=5.
The 1st equivalence class, consisting of multisets {{1}, {1,2}, {1,2,3}}, contains the following 8 permutations in S_4:
  (1) 1 2 3 4,
  (2) 1 2 4 3,
  (3) 1 4 3 2,
  (4) 3 4 2 1,
  (5) 2 4 3 1,
  (6) 1 3 4 2,
  (7) 4 3 2 1,
  (8) 2 3 4 1.
The 2nd equivalence class, consisting of multisets {{1}, {2,3}, {1,1,2}}, contains the following 4 permutations in S_4:
  (1) 4 3 1 2,
  (2) 2 1 4 3,
  (3) 3 4 1 2,
  (4) 2 1 3 4.
The 3rd equivalence class, consisting of multisets {{2}, {1,1}, {1,2,3}}, contains the following 4 permutations in S_4:
  (1) 4 2 3 1,
  (2) 1 4 2 3,
  (3) 1 3 2 4,
  (4) 3 2 4 1.
The 4th equivalence class, consisting of multisets {{2}, {1,3}, {1,1,2}}, contains the following 4 permutations in S_4:
  (1) 3 1 4 2,
  (2) 4 1 3 2,
  (3) 2 3 1 4,
  (4) 2 4 1 3.
The 5th equivalence class, consisting of multisets {{3}, {1,2}, {1,1,2}}, contains the following 4 permutations in S_4:
  (1) 3 2 1 4,
  (2) 4 2 1 3,
  (3) 4 1 2 3,
  (4) 3 1 2 4.
		

Crossrefs

Programs

  • Maple
    f:= l-> (n-> {seq(sort([seq(abs(l[i]-l[j]), i=1..j-1)]), j=2..n)})(nops(l)):
    a:= n-> nops({map(f, combinat[permute](n))[]}):
    seq(a(n), n=0..9);  # Alois P. Heinz, Mar 13 2024
  • PARI
    C(p)={vector(#p, i, vecsort(vector(i-1, j, abs(p[i]-p[j]))))}
    a(n)={my(M=Map()); forperm(n, p, mapput(M,C(p),1)); #M} \\ Andrew Howroyd, Feb 24 2024

Extensions

a(11) from Andrew Howroyd, Feb 24 2024