### 7.1.6 Matrix of factors

The maple_ifactors command decomposes an integer into prime factors and returns the result in Maple syntax.

- maple_ifactors takes n, an integer or a list of integers.
- maple_ifactors(n) decomposes the integer n (or the integers of the list) into prime factors, given as a list following the Maple syntax; namely, a list starting with +1 or −1 (for the sign), then a matrix with 2 columns whose rows are the prime factors and their multiplicity (or a list of such lists).

#### Examples

maple_ifactors(90)

⎡
⎢
⎢
⎣

1,

⎡
⎢
⎢
⎣

2 | 1
3 | 2
5 | 1

⎤
⎥
⎥
⎦

⎤
⎥
⎥
⎦

maple_ifactor([36,52])

⎡
⎢
⎢
⎢
⎢
⎢
⎣

1

⎡
⎢
⎣

2 | 2
3 | 2

⎤
⎥
⎦

1

⎡
⎢
⎣

2 | 2
13 | 1

⎤
⎥
⎦

⎤
⎥
⎥
⎥
⎥
⎥
⎦