Squares in number theory