Suppose I am trying to find factors of a particular positive integer
num. Suppose I also have a function
findGreatestFactor(num) that finds the greatest factor of a positive integer.
Is there a way to transform my integer
num such that it would still have all of the same factors as the original
findGreatestFactor(num) would find the next greatest factor of the original
let num = 100 findGreatestFactor(num) gives you 50 (the greatest factor of 100) let num2 = some transformation of num findGreatestFactor(num2) gives you 25 (the second greatest factor of 100) let num3 = same transformation of num2 findGreatestFactor(num3) gives you 20 (the third greatest factor of 100)