Hint 3 of Problem 498 Remainder of polynomial division


Problem 498

For positive integers n and m, we define two polynomials Fn(x) = xn and Gm(x) = (x-1)m.
We also define a polynomial Rn,m(x) as the remainder of the division of Fn(x) by Gm(x).
For example, R6,3(x) = 15x2 - 24x + 10.
Let C(nmd) be the absolute value of the coefficient of the d-th degree term of Rn,m(x).
We can verify that C(6, 3, 1) = 24 and C(100, 10, 4) = 227197811615775.
Find C(1013, 1012, 104) mod 999999937.

https://projecteuler.net/problem=498

Finally, we're arriving at our final hint for problem 498.
Note that 999999937 = 10^9-63, plus 999999937 is a prime number.

p = 999999937 and 10^9 = p+63;
Since we already have the conclusion that, 
C(10^13,10^12,10^4) = C(10^13 , 10^4) * C(10^13-10^4-1 , 10^12-10^4-1)
In fact, we can prove that none of C(10^13 , 10^4) and C(10^13-10^4-1 , 10^12-10^4-1) have p as a factor.
Also, we can prove that, 
C(10^13, 10^4) % p = C(63*10^4, 10^4) % p
C(10^13-10^4-1 , 10^12-10^4-1) % p = C(619999 , 52999) % p

And there goes our answer.

---------------------

The opinion above is original and unproven work. Please correct me if I made a mistake.
Please tell me if you have reached the correct answer using the methods above.
I am just too lazy to calculate that. :)

Comments

  1. The last line must be C(10^13-10^4-1 , 10^12-10^4-1) % p = C(10000,100*C(619999 , 52999) % p

    ReplyDelete

Post a Comment

Popular posts from this blog

Project Euler Problem 684 Inverse Digit Sum - Solution

Project Euler Problem 686 Powers of Two - Solution

Project Euler Problem 717 Summation of a Modular Formula - Solution