This one resembles with another Bit one: we are to calculate sum, so we consider bit by bit: at bit[i], it contributes bit[i] << i to the final sum.. Lesson learnt: 1) power2 can be moduled too; 2)VISUALIZE the problem space\process in your mind - it is crucial. #include <...