I want to run a mathematical function (dynamic) n times...
So f(x) would be:
((n+0) * (n+1) * (n+2) * .... * (n+x)) / (0+1+2+...+x+(x+1))
Since I want to calculate n times with the function it's not efficient to recalculate the function over and over again. Is there a way to store the function in a method?