The prime factorization of 5040 is:
$$ 5040 = 2\cdot2\cdot2\cdot2\cdot3\cdot3\cdot5\cdot7 $$Which is the same as :
$$ 5040 = 2^{4}\cdot3^{2}\cdot5\cdot7 $$Prime factorization can be nicely visualized by creating a factorization tree.
5040 can be written as 10 × 504. |
|
10 can be written as 2 × 5. |
|
504 can be written as 2 × 252. |
|
252 can be written as 2 × 126. |
|
126 can be written as 2 × 63. |
|
63 can be written as 3 × 21. |
|
21 can be written as 3 × 7. |
|
The end nodes are the prime factors of the number 5040. |
|