Creating vectors to store the remainders and the subsequences
List < pair > vect = new List < pair > ( ) ; vect . Add ( new pair ( 0 , 2 ) ) ; List < int > two = new List < int > ( ) ; List < int > zero = new List < int > ( ) ;