Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to print positive integers that divides a number without a remainder?

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