Tool to decompose a number in 2 factors. The decomposition in 2 factors of an integer N consists in finding 2 divisors which can be multiplied to give N.

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to decompose a number in 2 factors. The decomposition in 2 factors of an integer N consists in finding 2 divisors which can be multiplied to give N.

Answers to Questions

How to find two factors of a numbers?

Perform a search of all the divisors of the number N. All the combinations of 2 factors having for product the number N are the pairs \( d_1, d_2 \) with \( d_1 \) a divisor and \( d_2 = N / d_1 \) the result of the division.

Example: 12 can be decomposed into prime factors as 2*2*3. The list of divisors of 12 is therefore composed of 2, 3 but also 2*2=4 and 2*3=6. So couples of two factors can be deducted: 2*6 and 3*4 (There are also 12*1 but it is obvious).

Note that N is a multiple of all divisor numbers found.

The list obtained is exhaustive, but if there are many factors, the program could be limited to the first results.

Why to find two factors of a numbers?

From a number, the factorization makes it possible to find 2 divisors.

Example: From an area of a rectangle, the factorization makes it possible to find the height and the length.

How to lists divisors of a number?

Use the dCode tool for listing the divisors of any number.

dCode retains ownership of the source code of the script 2 Factors Decomposition online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online 2 Factors Decomposition script for offline use on PC, iPhone or Android, ask for price quote on contact page !