A particle is projected with a velocity v so that its horizontal range is twice the maximum height attained. The horizontal range is