login
A358700
a(n) is the number of binary digits of n^2.
1
0, 1, 3, 4, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 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, 12, 13, 13, 13, 13, 13, 13, 13
OFFSET
0,3
LINKS
FORMULA
a(n) = A070939(n^2) for n > 0; a(0) = 0 by convention.
MATHEMATICA
Array[IntegerLength[#^2, 2] &, 90, 0] (* Michael De Vlieger, Dec 16 2022 *)
PROG
(PARI) for (k=0, 70, print1(#binary(k^2), ", "))
(Python)
def A358700(n): return (n**2).bit_length() # Chai Wah Wu, Dec 16 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hugo Pfoertner, Dec 16 2022
STATUS
approved