Auxiliary function to choose shape so that a * b ≈ n and neither a or b are equal to 1 (most of the time).