3, 7, 15, 31, 63, 127...
Can you find the law? OK, just 2 ^ N -1.
So, question follows. If I give you a integer N, can you find the minimum M makes (2 ^ N - 1) % (2 ^ M - 1) = 0? N and M is at least 2.
输入
Input until EOF. Each test contains one integer N (2 <= N <= 1,100,000,000).