Fair and Square solutions

Fair and Square was solved using bc by 3 contestants. Solution sizes: average 2256 bytes (shortest: 770; longest: 3414).