HPARITY - Editorial

PROBLEM LINKS

Practice
Contest

DIFFICULTY

HARD

EXPLANATION

You can view the above image from here.
Lucas’ Theorem: http://en.wikipedia.org/wiki/Lucas’_theorem

SETTER’S SOLUTION

Can be found here.

TESTER’S SOLUTION

Can be found here.