# 整数的素因数分解（Prime factorization of an integer，factor_integer）

整数的质因数分解，以质数和指数成对的列表给出。

## 怎么写

### factor_integer(n)

**n**

一个整数。接受一个整数。

## 示例

- $\displaystyle 60 = \begin{pmatrix} 2 & 2 \\ 3 & 1 \\ 5 & 1 \end{pmatrix}$

  `factor_integer(60)`

  在求解器中，`factor_integer(60)` 的结果是 `[[2, 2], [3, 1], [5, 1]]`。

  [在求解器中打开](https://zh.hilberon.com/?q=factor_integer%2860%29)

## 相关函数

- [integer_exponent](https://zh.hilberon.com/library/integer_exponent)

  某个素数在一个整数中的指数。
- [integer_partitions](https://zh.hilberon.com/library/integer_partitions)

  把一个整数写成正整数之和的所有方式。
- [fibonacci](https://zh.hilberon.com/library/fibonacci)

  第 n 个斐波那契数，其中 F(1) = F(2) = 1。
- [extended_gcd](https://zh.hilberon.com/library/extended_gcd)

  两个整数的最大公因数，以及得到它的乘数。
- [from_continued_fraction](https://zh.hilberon.com/library/from_continued_fraction)

  连分数所表示的数。
- [euler_phi](https://zh.hilberon.com/library/euler_phi)

  欧拉函数：不超过 n 且与 n 互质的整数有多少个。

---
Source: https://zh.hilberon.com/library/factor_integer
