Hi Everyone!

I am trying to solving this codechef problem.

I am stuck in the theoretical mathematics part of it.

The editorial explains some equations which i am unable to understand.

Can somebody please explain me how these equations are formed and worked along and where does this algebraic representation of pascal triangle given in the editorial come from?

Any help is appreciated.

Thanks.

Give as much downvotes you want, it doesn't matters to me, but someone please explain me the logic behind this problem.

Pascal triangle comes from a famous French mathematician called Blaise Pascal. It is widely used, specially in combinatorics theory.

can you please help me understand the editorial ?

Put a lot of monitors in a row, each one with a number on screen, then download a virus and run it in one of the computers. See what happens and then code what you just saw.

thanks, that was really helpful.

Auto comment: topic has been updated by Survivor (previous revision, new revision, compare).