I presume you did your calculations (post #39) based on the total medals. I did both that and the weighted medal count (5 for gold and 3 for silver), and the USA did slightly better with the latter (8 places higher).
However, I used the population figures from Worldometer, and there were a few discrepancies which, to save time, I didn’t adjust for (Kosovo, Korea, Puerto Rico and Turkmenistan), so my figures might be slightly out (which is why I haven’t included them), which probably accounts for the small differences between your figures and mine.
That link shows it both ways, total medals and weighted totals. I think the USA moved up from 59th to 50th after weighting.
As to the other question somebody posed about athletes for various countries having some training in the USA (during their college years mostly) this is true of Canadian track medallists in recent years but not for the rest of the team, they tend to stay home and train in Canada in sports like rowing and cycling where we’ve done well.
At the end of the day the national programs are probably fairly comparable to each other, a lot depends on the talent pool, you could have the best coaching and training but if you don’t have world class athletes they aren’t going to win medals at the Olympics.
Personally I think the IOC should ban China, if they think Russia is a bad country and have to compete under the Olympic Committee banner, then what about this slave-labor organ-harvesting dictatorship — they should not be invited nor should they be hosting Olympics. They have some great athletes but you have to wonder what pressures or threats are placed on them, and the coaches.