https://erich-friedman.github.io/mathmagic/0610.html has some answers for small numbers of squares.