OFFSET
2,1
COMMENTS
For n >= 3, a(n) is the tree-depth of the n-antiprism graph.
The n-antiprism graph is isomorphic to the square of the cycle C_{2n}.
LINKS
Eric Weisstein's World of Mathematics, Antiprism Graph.
Eric Weisstein's World of Mathematics, Tree-Depth.
FORMULA
a(n) = floor(log_2(2*n - 1)) + floor(log_2(2*n - 1 - 2^(floor(log_2(2*n - 2)) - 1))) + 2 for n >= 2.
EXAMPLE
a(2) = 4 since floor(log_2(3)) + floor(log_2(2)) + 2 = 4.
MATHEMATICA
Table[Floor[Log2[2 n - 1]] + Floor[Log2[2 n - 1 - 2^(Floor[Log2[2 n - 2]] - 1)]] + 2, {n, 2, 20}]
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Eric W. Weisstein, Jul 01 2026
STATUS
approved
