login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
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