He was trying to work out how many ways you can recombine those 14 bits and still make a perfect square.
Il essayait de trouver combien de façon il y a de combiner ces 14 segments pour former un carré parfait.