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!)
A354722 Composite numbers whose divisors have distinct binary weights (A000120). 3
25, 39, 55, 57, 69, 87, 95, 111, 115, 119, 121, 123, 125, 141, 145, 159, 169, 177, 183, 185, 187, 201, 203, 205, 213, 215, 219, 221, 235, 237, 249, 253, 265, 289, 291, 299, 301, 303, 305, 319, 321, 323, 329, 335, 339, 355, 361, 365, 371, 377, 391, 393, 411, 413 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Without the restriction of composite numbers, 1 and all the odd primes would have been terms of this sequence.
Since 1 and 2 have the same binary weight, all the terms are odd.
LINKS
EXAMPLE
25 is a term since its divisors, 1, 5 and 25, have binary weights 1, 2 and 3, respectively.
55 is a term since its divisors, 1, 5, 11 and 55, have binary weights 1, 2, 3 and 5, respectively.
MATHEMATICA
bw[n_] := DigitCount[n, 2, 1]; q[n_] := CompositeQ[n] && UnsameQ @@ (bw /@ Divisors[n]); Select[Range[1, 400, 2], q]
PROG
(Python)
from sympy import divisors
def binwt(n): return bin(n).count("1")
def ok(n):
binwts, divs = set(), 0
for d in divisors(n, generator=True):
b = binwt(d)
if b in binwts: return False
binwts.add(b)
divs += 1
return divs > 2
print([k for k in range(415) if ok(k)]) # Michael S. Branicky, Jun 04 2022
(PARI) isok(c) = {if ((c>1) && !isprime(c), my(d=divisors(c)); #Set(apply(hammingweight, d)) == #d; ); } \\ Michel Marcus, Jun 04 2022
CROSSREFS
Subsequences: A255401 and A354724.
Sequence in context: A080386 A070758 A104667 * A354723 A066844 A255608
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Jun 04 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 June 24 09:06 EDT 2024. Contains 373674 sequences. (Running on oeis4.)