Spoj factorial solution