Harman Patil (Editor)

Prime factor

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Prime factor

In number theory, the prime factors of a positive integer are the prime numbers that divide that integer exactly. The prime factorization of a positive integer is a list of the integer's prime factors, together with their multiplicities; the process of determining these factors is called integer factorization. The fundamental theorem of arithmetic says that every positive integer has a single unique prime factorization.

Contents

To shorten prime factorizations, factors are often expressed in powers (multiplicities). For example,

360 = 2 × 2 × 2 × 3 × 3 × 5 = 2 3 × 3 2 × 5 ,

in which the factors 2, 3 and 5 have multiplicities of 3, 2 and 1, respectively.

For a prime factor p of n, the multiplicity of p is the largest exponent a for which pa divides n exactly.

For a positive integer n, the number of prime factors of n and the sum of the prime factors of n (not counting multiplicity) are examples of arithmetic functions of n that are additive but not completely additive.

Perfect squares

Perfect square numbers can be recognized by the fact that all of their prime factors have even multiplicities. For example, the number 144 (the square of 12) has the prime factors

144 = 2 × 2 × 2 × 2 × 3 × 3 = 2 4 × 3 2 .

These can be rearranged to make the pattern more visible:

144 = 2 × 2 × 2 × 2 × 3 × 3 = ( 2 × 2 × 3 ) × ( 2 × 2 × 3 ) = ( 2 × 2 × 3 ) 2 = ( 12 ) 2 .

Because every prime factor appears an even number of times, the original number can be expressed as the square of some smaller number. In the same way, perfect cube numbers will have prime factors whose multiplicities are multiples of three, and so on.

Coprime integers

Positive integers with no prime factors in common are said to be coprime. Two integers a and b can also be defined as coprime if their greatest common divisor gcd(ab) = 1. Euclid's algorithm can be used to determine whether two integers are coprime without knowing their prime factors; the algorithm runs in a time that is polynomial in the number of digits involved.

The integer 1 is coprime to every positive integer, including itself. This is because it has no prime factors; it is the empty product. This implies that gcd(1, b) = 1 for any b ≥ 1.

Cryptographic applications

Determining the prime factors of a number is an example of a problem frequently used to ensure cryptographic security in encryption systems; this problem is believed to require super-polynomial time in the number of digits — it is relatively easy to construct a problem that would take longer than the known age of the universe to solve on current computers using current algorithms.

Omega functions

The function, ω(n) (omega), represents the number of distinct prime factors of n, while the function, Ω(n) (big omega), represents the total number of prime factors of n. If

n = i = 1 ω ( n ) p i α i ,

then

Ω ( n ) = i = 1 ω ( n ) α i .

For example, 24 = 23 × 31, so ω(24) = 2 and Ω(24) = 3 + 1 = 4.

  • ω(n) for n = 1, 2, 3, … is respectively 0, 1, 1, 1, 1, 2, 1, 1, 1, … (sequence A001221 in the OEIS).
  • Ω(n) for n = 1, 2, 3, … is respectively 0, 1, 1, 2, 1, 2, 1, 3, 2, … (sequence A001222 in the OEIS).
  • References

    Prime factor Wikipedia