Create a recursive function in Go to compute lg(N!) such that the iterator only returns the value of every nth element, where n is any integer greater than zero. Remember: The predicate in your program must perform a Boolean AND.



Input: 5, 7 | 2, 3 | 7, 7


Output: 35 | 6 | 49