Solution:
The answer is (B). Consider a sequence b1,b2,…,b2017 of positive integers, all distinct, whose sum is 2016⋅2017⋅2018. Let d be the greatest common divisor of the elements of this sequence. By definition, the numbers a1:=b1/d,a2:=b2/d,…,a2017:=b2017/d are also positive integers, all distinct, and their sum is therefore at least equal to the sum 1+2+⋯+2017. We then have
2016⋅2017⋅2018=b1+⋯+b2017=d⋅(a1+a2+⋯+a2017)≥d⋅(1+2+⋯+2017)=d⋅22017⋅2018,
from which d≤2⋅2016. On the other hand, letting D=2⋅2016, the sequence D,2D,3D,⋯,2017D is one of the sequences that are written on the blackboard, and clearly the greatest common divisor of its elements is exactly D.