
Patrick B. answered 08/04/20
Math and computer tutor/teacher
well if N is even, then N = 2t for integer t
squaring: N^2 = 4t^2 which is a multiple of 4
if N is odd, then N= 2t+1 for integer t.
Squaring N^2 = 4t^2 + 4t + 1
= 4(t^2 + t) + 1
But t^2+t is also an integer by closure properties
of multiplication and addition over the integers
so in this case N^2 = 4K+1 for integer K=t^2+t
[end of proof]