What happens when you try to compute 2**8+1 ?
If its too large you could just subtract 2*8 and try again.
Should work fine with long long?
If its too large you could just subtract 2*8 and try again.