[seqfan] Re: successive powers of 2 modulo n

Max Alekseyev maxale at gmail.com
Sun Jun 12 16:50:24 CEST 2011


On Sat, Jun 11, 2011 at 7:59 AM, Jack Brennen <jfb at brennen.net> wrote:

> Note that i/bitand(i,-i) is just a tricky way to divide all powers of 2 out
> of i.

i/2^valuation(i,2) would be more straightforward.

Regards,
Max



More information about the SeqFan mailing list