This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients benrg, mark.dickinson, rhettinger, tim.peters
Date 2022-03-01.02:30:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646101842.07.0.888433156053.issue46868@roundup.psfhosted.org>
In-reply-to
Content
> the total number of trailing 1 bits in the integers from 1
> through N inclusive is N - N.bit_count()

Sorry, that's the total number of trailing 0 bits. The total number of trailing 1 bits is (N+1) - (N+1).bit_count().
History
Date User Action Args
2022-03-01 02:30:42tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, benrg
2022-03-01 02:30:42tim.peterssetmessageid: <1646101842.07.0.888433156053.issue46868@roundup.psfhosted.org>
2022-03-01 02:30:42tim.peterslinkissue46868 messages
2022-03-01 02:30:42tim.peterscreate