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!)
A212315 Numbers m such that B(m) = B(triangular(m)), where B(m) is the binary weight of m (A000120). 2
0, 1, 3, 7, 15, 31, 39, 45, 63, 78, 79, 91, 93, 127, 139, 143, 158, 159, 175, 182, 187, 189, 222, 255, 286, 287, 318, 319, 351, 367, 375, 379, 381, 407, 446, 487, 511, 535, 543, 572, 574, 575, 607, 627, 638, 639, 703, 724, 727, 731, 747, 750, 759, 763, 765, 799, 823, 830 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
A000120(a(n)) = A000120(a(n)*(a(n)+1)/2).
PROG
(Python)
def isa(n): return n.bit_count()==((n*(n+1))>>1).bit_count()
print(list(n for n in range(10**3) if isa(n))) # Dumitru Damian, Mar 04 2023
CROSSREFS
Sequence in context: A098583 A275531 A275532 * A043729 A331503 A137170
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, Oct 24 2013
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 20 00:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)