|
|
A375256
|
|
Number of pairs of antipodal vertices in the level n Hanoi graph.
|
|
4
|
|
|
3, 12, 39, 129, 453, 1677, 6429, 25149, 99453, 395517, 1577469, 6300669, 25184253, 100700157, 402726909, 1610760189, 6442745853, 25770393597, 103080394749, 412319219709, 1649272160253, 6597079203837, 26388297940989, 105553154015229, 422212540563453, 1688850011258877, 6755399743045629
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
A level 1 Hanoi graph is a triangle. Level n+1 is formed from three copies of level n by adding edges between pairs of corner vertices of each pair of triangles. This graph represents the allowable moves in the Towers of Hanoi problem with n disks.
Antipodal vertices are a pair of vertices at maximum distance in a graph. The diameter of the level n Hanoi graph is 2^n - 1.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3*(2^(2n-3)+3*2^(n-2)-1).
|
|
EXAMPLE
|
2 example graphs:
o
/ \
o---o
/ \
o o o
/ \ / \ / \
o---o o---o---o---o
Graph: H_1 H_2
Since the level 1 Hanoi graph is a triangle, a(1) = 3.
|
|
PROG
|
(PARI) a(n) = 3*(2^(2*n-3)+3*2^(n-2)-1); \\ Michel Marcus, Aug 08 2024
|
|
CROSSREFS
|
Cf. A370933 (antipodal pairs in Sierpiński triangle graphs).
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|