The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A199238 n mod (number of ones in binary representation of n). 7
 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 2, 3, 0, 1, 0, 1, 0, 0, 1, 3, 0, 1, 2, 3, 1, 1, 2, 1, 0, 1, 0, 2, 0, 1, 2, 3, 0, 2, 0, 3, 2, 1, 2, 2, 0, 1, 2, 3, 1, 1, 2, 0, 2, 1, 2, 4, 0, 1, 2, 3, 0, 1, 0, 1, 0, 0, 1, 3, 0, 1, 2, 3, 1, 1, 2, 4, 0, 0, 1, 3, 0, 1, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,11 COMMENTS a(A049445(n)) = 0; a(n) = n - A161764(n); a(A199262(n)) = n and a(m) <> n for m < A199262(n). LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 MATHEMATICA Mod[#, DigitCount[#, 2, 1]]&/@Range[90] (* Harvey P. Dale, Nov 08 2011 *) PROG (Haskell) a199238 n = a199238_list !! (n-1) a199238_list = zipWith mod [1..] \$ tail a000120_list (PARI) A199238(n)=n%norml2(binary(n))  \\ - M. F. Hasler, Oct 09 2012 CROSSREFS Cf. A070635. Sequence in context: A127711 A336937 A069584 * A181347 A014587 A025658 Adjacent sequences:  A199235 A199236 A199237 * A199239 A199240 A199241 KEYWORD nonn AUTHOR Reinhard Zumkeller, Nov 04 2011 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 20 09:49 EDT 2020. Contains 337900 sequences. (Running on oeis4.)