long ago think finite arithmetic progression A b then find sequence c contain element common a b it hard c finite arithmetic progression after year forget a remember b c you reason determine find lose arithmetic progression before begin eternal search want know different finite arithmetic progression exist lose progression a two arithmetic progression consider different differ term common difference number termsit possible infinitely progression case will not try look print 1 case even finite number answer large so interested find answer modulo 1097