logoalt Hacker News

krackersyesterday at 8:51 PM1 replyview on HN

>for any y >= n with f(y) = 0 (mod n), there's some x between 0 and n-1

There's a simpler way to see this, any such y can be represented as y = nk + x where i,j are divisor & remainder. Then f(y) = f(nk + x) = f(x) modulo n since by binomial theorem all other terms other than those with just x will be divisible by n.


Replies

articulatepangtoday at 1:01 AM

Thank you and yes, I agree! It's neat to use the binomial theorem to see this, because that's the tool the article uses for the main trick/insight it's explaining.

show 1 reply