Text
In a factor tree of a number , every non-prime node splits into two factors, down to the primes (the leaves). Prove that, however the tree is built, the number of “splits” is always the same, equal to , where is the number of prime factors of counted with multiplicity.
Solution
Count the leaves. The tree starts with a single node (the root ). Each split replaces one node with two children: it removes one leaf and adds two, so it increases the number of leaves by exactly . In the end the leaves are the prime factors counted with multiplicity, so there are of them (a number that, by the fundamental theorem of arithmetic, does not depend on the choices made). If is the number of splits, starting from leaf and reaching leaves gives , that is This value depends only on , not on the chosen tree.