Subtraction Game 2

qstn: http://www.codechef.com/problems/AMSGAME2

I have read editorial various time bt i cant undestand???i have understood till now that we have to find
the sequence whose GCD is 1

can anyone explain in details.with dry code run with some example

thank you

//