Solution:
(a) Let us fix n consecutive numbers a1,a2,…,an. Now let d be a number larger than n that has no common factors with any of a1,a2,…,an (for instance, a prime number larger than an), and set b1=a1+d,b2=a2+d,…,bn=an+d; then a1,a2,…,an and b1,b2,…,bn are two sequences of length n that are disjoint from each other and such that, for every i between 1 and n, the greatest common divisor of ai and bi is equal to 1: indeed, if a common factor of ai and bi existed, it would also be a factor of bi−ai=d, and this is impossible, because d and ai have no common factors.
(b) Similarly as before, let us fix a1,a2,…,an consecutive, with a1>1; let us then take an integer d>n that has factors in common with each of the elements a1,…,an (for instance, the product a1a2⋯an), and set b1=a1+d,b2=a2+d,…,bn=an+d. Once again the sequences a1,a2,…,an and b1,b2,…,bn are disjoint from each other, but in this case ai and bi always have a common factor: indeed ai and d always have a common factor, and hence the same is true for ai and d+ai=bi.