He was trying to work out how many ways you can recombine those 14 bits and still make a perfect square.
Ele tentava calcular de quantas maneiras podemos recombinar essas 14 partes e ainda ter um quadrado perfeito.