On a Problem of Lehmer on Partitions into Squares