Problem #214
Easy Expressions
Find the value of the following summation
\sum_{x=1}^{10^{12}} ( x^2 + x + 1 ) * x! ,
x! denotes factorial of x.
Give your answer modulo 3^{20}
Find the value of the following summation
\sum_{x=1}^{10^{12}} ( x^2 + x + 1 ) * x! ,
x! denotes factorial of x.
Give your answer modulo 3^{20}