#c221001. 求幂和
求幂和
Power Sum
Problem Description
You are given three numbers , , . You need to compute .
Input Format
Three positive integers , , . It is guaranteed that is prime and .
Output Format
One positive integer representing the result.
Sample Input
2 3 101
Sample Output
14
Hint
For of the data, , .