nmnmx what is wrong in this?

https://www.codechef.com/viewsolution/19263864

@darklord_chef you can’t just divide by ‘j’ while calculating the binomial coefficients. Instead you need to take modulo multiplicative inverse of ‘j’.

correct…