বীজতত্ত্বনেটরিকস | Math Problem

Click here to read the complete problem statement.

Can someone provide me any hints?