I have included the additional details regarding the question.
It is important to remember that weight represents the strength of the gravitational pull on an object.
The weight at the surface can be expressed as:

Here, we utilize the standard g value. However, g varies with elevation. The reason this variation is rarely observed is due to the fact that the height must be considerable relative to Earth's radius for it to make a notable impact.
According to Newton's law of gravitation, we have:

In this scenario, r refers to the distance between the centers of mass of the interacting objects. While standing on the Earth's surface, r is equivalent to Earth's radius:

This acceleration is what we denote as g.
When at a certain height, the expression is:

Let’s call this new acceleration g'. Dividing it by g gives us:

Thus, the weight can be expressed as:

By substituting the values, we find:

For Earth, we obtain:

Consequently, the resulting ratio is: