Proof: Suppose for the sake of contradiction, there is an integer a such that $a^2$ congruent $0 \pmod {4}$ and $a^2$ congruent $1 \pmod {4}$. Then $(a^2)-0=4k$ and $(a^2)-1=4l$ for some $k,l$ members of the integers. Now, $$a^2-0=4k$$ $$a^2=4k$$ Thus, $$a^2-1=4l$$ $$((4k)^2)-1=4l$$ $$(16k^2)-1=4l$$ $$(16k^2)-4l=1$$ $$2((8k^2)-2l)=1$$
$2m=1$ for some integer m where $m=(8k^2)-4l$ By the definition of an even integer $1$ is even, however we know $1$ is odd, therefore a contradiction.