Hi,
Is there a function in Sage that prints all the positive integers that divides without a remainder?
I am using factor()
but I think it only shows the prime factorization.
For example, using factor(54)
returns 2 * 3^3
in Sage but all the positive integers are:
1 × 54 = 54
2 × 27 = 54
3 × 18 = 54
6 × 9 = 54
9 × 6 = 54
18 × 3 = 54
27 × 2 = 54