login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162215 a(n) = the smallest multiple of n that is > 2n and contains the same number of 1's in its binary representation as n contains. 1
4, 8, 9, 16, 20, 18, 21, 32, 36, 40, 44, 36, 52, 42, 45, 64, 68, 72, 76, 80, 84, 88, 92, 72, 100, 104, 108, 84, 116, 90, 93, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 135, 184, 188, 144, 196, 200, 153, 208, 212, 216, 220, 168, 228, 232, 236 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

a(n) = 3n only if n is in sequence A077459. Otherwise, a(n) = 4n.

EXAMPLE

15 in binary is 1111, which contains four 1's as binary digits. 15*3 = 45, which is 101101 in binary. This also contains four 1's. So a(15) = 3*15 = 45.

MAPLE

A000120 := proc(n) add(d, d=convert(n, base, 2)) ; end: A162215 := proc(n) local k; for k from 3 do if A000120(k*n)= A000120(n) then RETURN(k*n) ; fi; od: end: seq(A162215(n), n=1..80) ; [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jul 04 2009]

CROSSREFS

A077459

Sequence in context: A069265 A003679 A079432 * A134344 A119315 A010390

Adjacent sequences:  A162212 A162213 A162214 * A162216 A162217 A162218

KEYWORD

base,nonn

AUTHOR

Leroy Quet, Jun 28 2009

EXTENSIONS

a(4) corrected and sequence extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jul 04 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 10:28 EST 2012. Contains 205763 sequences.