factorialfrenzy
The exclamation mark refers to factorial, and the symbol between the "i=1" and "n" is a summation symbol.
You may Google to understand the meaning of the various functions/symbols and how to compute them.
The sample outputs should be 289 for n=3 and 14 for n=2.