Problems in least squares