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!)
 A131762 Number of 1s in the 1's complement of the 32-bit binary representation of n. 1
 32, 31, 31, 30, 31, 30, 30, 29, 31, 30, 30, 29, 30, 29, 29, 28, 31, 30, 30, 29, 30, 29, 29, 28, 30, 29, 29, 28, 29, 28, 28, 27, 31, 30, 30, 29, 30, 29, 29, 28, 30, 29, 29, 28, 29, 28, 28, 27, 30, 29, 29, 28, 29, 28, 28, 27, 29, 28, 28, 27, 28, 27, 27, 26 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 COMMENTS This sequence is finite with a total of 2^32 terms. - Andrew Howroyd, Jan 04 2020 LINKS Andrew Howroyd, Table of n, a(n) for n = 0..4095 FORMULA a(n) = 32 - (number of 1s in binary representation of n). a(n) = 32 - A000120(n). - Andrew Howroyd, Jan 04 2020 EXAMPLE a(7) = 32 - (number of 1s in 00000000000000000000000000000111) = 32 - 3 = 29. PROG (PARI) a(n)={32-hammingweight(n)} \\ Andrew Howroyd, Jan 04 2020 CROSSREFS Cf. A000120. Sequence in context: A070626 A022988 A023474 * A208129 A330574 A126271 Adjacent sequences:  A131759 A131760 A131761 * A131763 A131764 A131765 KEYWORD nonn,easy,fini AUTHOR Rachit Agrawal (rachit_agrawal(AT)daiict.ac.in), Oct 23 2007 EXTENSIONS a(0) prepended and terms a(14) and beyond from Andrew Howroyd, Jan 04 2020 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 June 19 15:03 EDT 2021. Contains 345141 sequences. (Running on oeis4.)