Messing about with this simple patch to calculate BPM change when something is slowed down two semitones and I wondered - how would I find the most whole numbered/least amount of decimal places change/ratio?

I think this is probably a basic maths question, but I have no clue how to approach it. Thanks!