Given any integer a binary factor tree is defined to be:
A tree with the single node when is prime.
A binary tree that has root node , left subtree and right subtree , when is not prime. Here and are positive integers such that , and is the smallest.
For example :
We define to be the smallest number that has a factor tree identical in shape to the factor tree for , the double factorial of .
For example, consider . The factor tree for is shown below together with the factor tree for which is the smallest number that has a factor tree of the same shape. Hence .