View Single Post
  #13  
Old 06-07-2006, 10:17 AM
Matt L Matt L is offline
Registered User
 
Join Date: Oct 2005
Posts: 4,263
Any rational integer can be expressed uniquely as a sum of distinct powers of two. That's the same as converting to base-two notation.

BE SURE that you're setting P2 and not P1.

Assuming 160 for P2, 160 = 128 + 32 = 2^7 + 2^5. 16 is not present.
Reply With Quote