# Integer Factorization

When we talked about factors and multiples we learned how to find factors of number.

This allows to write number as product of its factors.

Recall that factors of 12 are 1,2,3,4,6,12.

So, we can write that `12=1*12`, `12=2*6` and `12=3*4`.

This means that there is more than one representation of same number as product of its factors.

We can find one more integer factorization of 12: since `4=2*2` then `12=4*3=2*2*3`.

**Example 1**. Find all possible factorizations of 18.

Factors of 18 are 1,2,3,6,9,18.

So, `18=1*18=2*9=3*6`.

Also, since 6 and 9 can also be factored as `6=2*3` and `9=3*3` then

`18=3*6=3*2*3` and `18=2*9=2*3*3`. Last two factorizations are same (we just swaped factors), so 18 can be represented in the following way:

`18=1*18=2*9=2*6=2*3*3`.

Factorization `18=2*3*3` can be rewritten using exponents as `18=2*3^2`.

One more example.

**Example 2**. Find all possible factorizations of -15.

We first find factorization of 15.

Factors of 15 are 1,3,5,15.

So, `15=1*15=3*5`.

Now, to find factorization of -15 place minus in front of each factorization: `-15=-1*15=-3*5`.

Now, exercises.

**Exercise 1**. Find all possible factorizations of 20.

**Answer**: `20=1*20=2*10=4*5=2^2*5`.

Another exercise.

**Exercise 2**. Find all possible factorizations of -45.

**Answer**: `-45=-1*45=-3*15=-5*9=-3^2*5`.