[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!)
A344602 Integers whose Hamming weight is triangular. 2
0, 1, 2, 4, 7, 8, 11, 13, 14, 16, 19, 21, 22, 25, 26, 28, 32, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56, 63, 64, 67, 69, 70, 73, 74, 76, 81, 82, 84, 88, 95, 97, 98, 100, 104, 111, 112, 119, 123, 125, 126, 128, 131, 133, 134, 137, 138, 140, 145, 146, 148, 152, 159, 161 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MAPLE
q:= n-> issqr(8*add(i, i=Bits[Split](n))+1):
select(q, [$0..200])[]; # Alois P. Heinz, May 24 2021
MATHEMATICA
Select[Range[0, 200], IntegerQ @ Sqrt[8 * Plus @@ IntegerDigits[#, 2] + 1] &] (* Amiram Eldar, May 24 2021 *)
PROG
(PARI) isok(n) = ispolygonal(hammingweight(n), 3);
CROSSREFS
Sequence in context: A161989 A229829 A000069 * A333975 A140137 A080308
KEYWORD
nonn,base
AUTHOR
Michel Marcus, May 24 2021
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 04:38 EDT 2024. Contains 375526 sequences. (Running on oeis4.)