The   ''[[wp:Hamming weight|population count]]''   is the number of   '''1'''s   (ones)   in the binary representation of a non-negative integer. ''Population count''   is also known as: ::::*   ''pop count'' ::::*   ''popcount'' ::::*   ''sideways sum'' ::::*   ''bit summation'' ::::*   ''Hamming weight'' For example,   '''5'''   (which is   '''101'''   in binary)   has a population count of   '''2'''. ''[http://mathworld.wolfram.com/EvilNumber.html Evil numbers]''   are non-negative integers that have an   ''even''   population count. ''[http://mathworld.wolfram.com/OdiousNumber.html Odious numbers]''     are  positive integers that have an    ''odd''   population count. ;Task: * write a function (or routine) to return the population count of a non-negative integer. * all computation of the lists below should start with   '''0'''   (zero indexed). :* display the   ''pop count''   of the   1st   thirty powers of   '''3'''       ('''30''',   '''31''',   '''32''',   '''33''',   '''34''',   ∙∙∙   '''329'''). :* display the   1st   thirty     ''evil''     numbers. :* display the   1st   thirty   ''odious''   numbers. * display each list of integers on one line   (which may or may not include a title),   each set of integers being shown should be properly identified. ;See also * The On-Line Encyclopedia of Integer Sequences:   [[oeis:A000120|A000120 population count]]. * The On-Line Encyclopedia of Integer Sequences:   [[oeis:A000069|A000069 odious numbers]]. * The On-Line Encyclopedia of Integer Sequences:   [[oeis:A001969|A001969 evil numbers]].