The answer is 2674+672.
We claim that both (2r+1,2s+1) and (2r+1,2s−1) are of the form 2a+1 or 1 for any r,s∈Z+. We prove this by induction on min{r,s}. The base case min{r,s}=1 is trivial since the greatest common divisor can only be 1 or 3. Assume this holds for all smaller cases and consider the inductive step.
For (2r+1,2s+1), WLOG assume r≤s. Let s=qr+b where 0≤b<r. Then
2s+1=2b(2r)q+1≡2b(−1)q+1=±2b+1(mod2r+1).
This shows (2r+1,2s+1)=(2r+1,2b±1). As b<r, we are done by the inductive hypothesis.
Similarly, for (2r+1,2s−1), if r≤s, then we write s=qr+b for some 0≤b<r so that (2r+1,2s−1)=(2r+1,2b±1). If s<r, then we write r=qs+b for some 0≤b<s so that (2r+1,2s−1)=(2b+1,2s−1). In any case, we are done by the inductive hypothesis.
So we have proven the claim by induction. Next, note that 2a+1∣2r+1 if and only if r=da for some odd integer d. (Again, by writing r=qa+b with 0≤b<a, we can show that 2a+1∣2b(−1)q+1 and hence 2a+1≤∣2b(−1)q+1∣ unless 2b(−1)q+1=0. As b<a, the former case is impossible.) Therefore, the greatest common divisor of two terms is 2a+1 only if both are of the form 2(2k−1)a+1. In particular, we cannot have a>673 since otherwise one term is at least 23(674)+1>22019+1.
On the other hand, a can be one of 1,2,…,673 as (2a+1,23a+1)=2a+1.
Obviously, the greatest common divisor can also be 1. So the answer is
1+(21+1)+(22+1)+⋯+(2673+1)=2674+672.