Observation. \lg is increasing [00UC]

\lg is an increasing function. So, if S(x) > S(y) then R(x) > R(y). In particular this means that R(x) > R(y) whenever x is an ancestor of y.