This problem is a double factorial problem and can be solved by trial and error method while paying attention to the behavior of each function in the equation after a certain value of n