[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A108852 A179413 A119476 * A307136 A339362 A240676
KEYWORD
nonn,base
AUTHOR
Hugo Pfoertner, Dec 16 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 00:57 EDT 2024. Contains 375520 sequences. (Running on oeis4.)