login
A329202
a(n) = floor(2*log_2(n)) = floor(log_2(n^2)).
6
0, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12
OFFSET
1,2
COMMENTS
For n >= 1, a(n+1) is the tree-depth of the n-ladder graph. - Eric W. Weisstein, Jul 01 2026
LINKS
Eric Weisstein's World of Mathematics, Ladder Graph.
Eric Weisstein's World of Mathematics, Tree-Depth.
MATHEMATICA
Table[Floor[2 Log2[n]], {n, 20}] (* Eric W. Weisstein, Jul 01 2026 *)
(* Alternative: *)
Floor[2 Log2[Range[20]]] (* Eric W. Weisstein, Jul 01 2026 *)
PROG
(PARI) a(n)=logint(n^2, 2)
CROSSREFS
Cf. A017912, A328911 (has this as row lengths).
Sequence in context: A333262 A218767 A334863 * A318994 A261101 A327704
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Nov 07 2019
STATUS
approved