A stone is thrown from ground level over horizontal ground. It just clears three walls, the successive distances between them being r and 2r . The inner wall is 15/7 times as high as the outer walls which are equal in height. The total horizontal range is nr, where n is an integer. Find n.