A projectile thrown with an initial velocity u has the same range R when the maximum height attained by it is either h1 or h2. Then R, h1 and h2 are related as