Fair and square numbers