do this...

來源: 2023-08-07 17:43:09 [博客] [舊帖] [給我悄悄話] 本文已被閱讀:

for all integers there are 4 possibilities:

4x, 4x+1, 4x+2, 4x+3.

for 4x, the formula turns out to be 4x**2-4x**2=2, no solution;

for 4x+1, (16x**2+8x+1)/4-4x**2=2x=2, x=1.

for 4x+2, (16x**2+16x+4)/4-4x**2-4X-1=0, no solution;

for 4x+3, (16x**2+24x+9)/4-4x**2-4x-1=2x+1=2, no integer solution.

so the only solution is 5.