for n in range(1, 40000): if (1 + 2 ** (2 * n + 1)) % ((2 * n + 1) ** 2) == 0: print(n)
Standard input is empty
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!