def t_o(a):
t = int(a/2)
b = t*t-1
c = t*t+1
f = (a*a+b*b==c*c)
print(f,'ou',a,b,c,a*a+b*b,c*c)
def t_j(a):
t =a*a
b=int(t/2)
c =t-b
f = (a*a+b*b==c*c)
print(f,'j-',a,b,c,f,a*a+b*b,c*c)
for i in range(2,100,2):
t_o(i)
t_j(i+1)
奇数平方写连续
偶数半方加减一