Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Prime factorization of an integer (factor_integer)

Prime factorization of a whole number, as a list of prime and exponent pairs.

How to write it

factor_integer(n)

n
A whole number. Takes a whole number.

Examples

  • 60=(223151)\displaystyle 60 = \begin{pmatrix} 2 & 2 \\ 3 & 1 \\ 5 & 1 \end{pmatrix}
    factor_integer(60)

    In the solver, factor_integer(60) gives [[2, 2], [3, 1], [5, 1]].

    Open in the solver
  • integer_exponent

    The exponent of a prime in a whole number.

  • integer_partitions

    All the ways to write a whole number as a sum of positive whole numbers.

  • fibonacci

    The n-th Fibonacci number, with F(1) = F(2) = 1.

  • extended_gcd

    Greatest common divisor of two whole numbers with the multipliers that give it.

  • from_continued_fraction

    The number a continued fraction stands for.

  • euler_phi

    Euler's totient: how many whole numbers up to n are coprime to n.