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
factor_integer(60)In the solver,
Open in the solverfactor_integer(60)gives[[2, 2], [3, 1], [5, 1]].
Related functions
- 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.