Arithmetic sequences $(a_n)$ and $(b_n)$ have integer terms with $a_1=b_1=1<a_2\le b_2$ and $a_nb_n=1001$ for some $n$. What is the largest possible value of $n$?
Write $a_n=1+(n-1)d$ and $b_n=1+(n-1)e$ with $1\le d\le e$. Then $1<a_n\le b_n$, $a_nb_n=1001$, and $n-1$ divides both $a_n-1$ and $b_n-1$, hence their gcd.
Pairs: $(7,143),(11,91),(13,77)$, with gcds $\gcd(6,142)=2$, $\gcd(10,90)=10$, $\gcd(12,76)=4$.