Fair and Square solutions

Fair and Square was solved using AWK by 4 contestants. Solution sizes: average 535 bytes (shortest: 177; longest: 718).