Creates a factorization diagram for a given integer