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!)
A293655 Numbers having in binary representation more zeros than their squares. 1
181, 5221, 11309, 19637, 21577, 22805, 43151, 69451, 74969, 76845, 82709, 83539, 85029, 86283, 86581, 91205, 148245, 165013, 165061, 165418, 166027, 170021, 172213, 172615, 173095, 173101, 173162, 173331, 180405, 182433, 184587, 184885, 185363, 201829, 282713 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
181 in base 2 is 10110101, with 3 zeros, and 181^2 is 111111111111001, with 2 zeros.
MATHEMATICA
Select[Range[3*10^5], DigitCount[#, 2, 0] > DigitCount[#^2, 2, 0] &] (* Michael De Vlieger, Feb 21 2018 *)
PROG
(Python)
def count0(n):
return bin(n)[2:].count('0')
for n in range(1000000):
if count0(n*n) < count0(n):
print(str(n), end=', ')
(PARI) nbz(n) = my(b=binary(n)); #b - hammingweight(n);
isok(n) = nbz(n) > nbz(n^2); \\ Michel Marcus, Feb 12 2018
CROSSREFS
Sequence in context: A264337 A155018 A179814 * A008379 A262141 A212938
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Feb 06 2018
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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)