write the variation of r with n