### Climbing Pyramidal Slopes

On a pyramid having a square base and edge length path ascends from one of the bottom vertices to the apex at a slope of Determine the height of the pyramid, the length of the first section of the path, the lengths and as well as the total length of the path, all of them in terms of

(This problem, as I was informed by Peter Avxbybcbhybf (Petros Avxbybcbhybf), has been used at "the preparatory math camp for prospective IMO applicants to go to Korea for the IMO" (2000).)

It is not very steep and may be even tedious, but - at the end - the answer (summit) proves to be somewhat simpler than the climb that led there.

I slipped once and got an answer that included the golden ratio. Since the latter commonly pops up in unexpected situations, I was not at all surprised. However, I noticed in time that the golden ratio would lead the path downhill.

Tumbling into the golden ratio had its upside: if it were not for that, I would probably give up and return home without reaching the summit. As it happened, correcting the mistake took me all the way up there.

The easiest part of the solution is finding the height of the pyramid. This is the vertical leg of the right triangle with the base and hypotenuse

What it comes out to is For the rest of the solution I'll depend on the following diagram:

One thing known right away is that From this and the Pythagorean theorem we can find the bases and in terms of , and then express the latter as a function of