division by 7 efficiently ???
Krypto
krypto.wizard at gmail.com
Thu Feb 1 15:25:21 EST 2007
The correct answer as told to me by a person is
(N>>3) + ((N-7*(N>>3))>>3)
The above term always gives division by 7
More information about the Python-list
mailing list