you sequence n distinct integer a1a2an 1ain you want remove integer way result sequence integer satisfie follow condition result sequence exclusive xor operation integer result sequence equal 0 write integer result sequence begin end row decimal numeral system space write number divisible p you give sequence n integer prime number p find way satisfy describe condition