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!)
A211201 Smallest m such that (sum of binary digits of m*(m+1)/2) = n. 6
0, 1, 2, 6, 5, 10, 19, 22, 37, 77, 108, 165, 90, 313, 461, 620, 1252, 1957, 2610, 3237, 5654, 7797, 9818, 15797, 22245, 34725, 56723, 92634, 122330, 178540, 226838, 507571, 454045, 490426, 1480005, 2284378, 1482842, 2965594, 5931098, 10218573, 11096982, 21793257, 31317157 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Donovan Johnson, Table of n, a(n) for n = 0..71 (terms < 2*10^12)
FORMULA
A050493(a(n)) = n and A050493(m) <> n for m < a(n).
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a211201 = fromJust . (`elemIndex` a050493_list)
(PARI) a(n) = my(m=0); while (hammingweight(m*(m+1)/2) != n, m++); m; \\ Michel Marcus, Jan 27 2022
CROSSREFS
Sequence in context: A195488 A092744 A077174 * A359035 A179627 A193977
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Feb 04 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 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)