Soluciones factorial y arbol