Interesting Game | Math Problem

Click here to read the complete problem statement.

Which n should be determined? And, which n needed to be in answered?