login
A393156
Number of involution pairs of graceful Prüfer codes on n vertices with both codes in the second half of the lexicographic order.
2
0, 1, 2, 8, 33, 177, 950, 5972, 41124, 302169, 2462651, 21078452
OFFSET
3,3
COMMENTS
A graceful Prüfer code of length n-2 is a sequence over {0,1,...,n-1} corresponding to a gracefully labeled tree on n vertices. Each such code belongs to an involution pair obtained by applying the natural involution induced by relabeling the underlying tree. The lexicographic rank of a Prüfer code is taken among all n^(n-2) sequences of length n-2 over {0,1,...,n-1}, ordered lexicographically. Let H = n^(n-2)/2. This sequence counts involution pairs (c,c') such that rank(c) > H and rank(c') > H. In other words, each counted pair is laying in the second half of the lexicographic space of codes.
REFERENCES
Douglas B. West, Introduction to Graph Theory, Pearson Education, 2002, page 81.
LINKS
Igor Blokhin, Graceful Prüfer Codes (Python repository).
FORMULA
a(n) = A337274(n) - A393155(n) - A393154(n).
EXAMPLE
The first involution pair of graceful Prüfer codes lying entirely in the second half appears for a tree with 4 vertices. It corresponds to two graceful labelings of a path: 3-0-2-1 (Prüfer code: 2,0) and 0-3-1-2 (Prüfer code: 3,1).
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Igor Blokhin, Feb 04 2026
STATUS
approved