The final factor is,to account in this scenario, do all human capable of reaching the same intellectual level? Do they born equal in that regard? Or for example every hundredth people has high enough intellect?
The envisioned technology level of (modern) also changes to final number. Steam-engines are easier I can't be trained to understand than nuclearbe a Quantum Physicist. A possibly future automation could reach fully automated factories withPeople's view vary in this regard, so I will leave this as a few overseer requiredsimple multiplier.
To calculate an accurate number without these factors, is beyond my capabilityThey are pointers for a reasonably close estimate. AtMy very rough guess, a few hundred thousand or most a million can maintain an inherited and hastily retrofitted modern technological world.
NOTE: In my view, they have to be highly specialized human blessed with great intellectual capability could, in theoryvarious technological fields, all over the world operate and maintainpreferable the cream of the crop in intellectual ability, among other things. Mostly, because this will lower the necessary machinerynumber. Not ALL of them have to keep it goingbe like that, but a significant percentage.
Depending on the level of automation and mechanization, this percentage may vary. (Look at Factorio) Also, my assumption is that a hard-laborer Note:can't be retrained Not all of them has to be the above mentioned specialized, very smart human. Only, everyone has to be smart enough to be able to do their jobs well. My answer to determine the lowest necessary number require higher percentage of technologically well educated and smart people (various engineers and scientists mostly), than simply hard-laborers.(in reasonable time and capacity, views may vary) to be a rocket scientist, nuclear reactor operator and so on...