divide and conquer test with factorial