# Matrix of factors: maple_ifactors

### 5.5.6 Matrix of factors: maple_ifactors

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

- maple_ifactors takes one argument:
  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.

- Input:
  maple_ifactors(90)
  Output:

  ⎡
  ⎢
  ⎢
  ⎣

  1,

  ⎡
  ⎢
  ⎢
  ⎣

  2 | 1
  3 | 2
  5 | 1

  ⎤
  ⎥
  ⎥
  ⎦

  ⎤
  ⎥
  ⎥
  ⎦

- Input:
  maple_ifactor([36,52])
  Output:

  ⎡
  ⎢
  ⎢
  ⎢
  ⎢
  ⎢
  ⎣

  1

  ⎡
  ⎢
  ⎣

  2 | 2
  3 | 2

  ⎤
  ⎥
  ⎦

  1

  ⎡
  ⎢
  ⎣

  2 | 2
  13 | 1

  ⎤
  ⎥
  ⎦

  ⎤
  ⎥
  ⎥
  ⎥
  ⎥
  ⎥
  ⎦