In a principal ideal ring:
$$\forall\, a,b \in \mathbb{Z},\quad a \wedge b = 1\ \text{ (notation for gcd)} \enspace \Longleftrightarrow \enspace (a) + (b)= \mathbb{Z}$$ where $(a)$ denotes the principal ideal generated by $a$. So it is indeed obvious that if $\ (n_1,\cdots , n_r)$ are pairwise coprime then they are setwise coprime:
$$ (n_i)+ (n_j)= \mathbb{Z} \quad \Longrightarrow\quad (n_1)+ \cdots + (n_r)= \mathbb{Z} $$ (the reasonning is as intuitive with the definition of greatest common divisor).
First useless detail, I nevertheless wanted to have an explicit Bézout relation: starting from relations $\ u\, n_i + v\, n_j=1$ for every couple $(i,j), i\neq j$, find a systematic way to obtain an expression of the form $$\ u_1\, n_1 + \cdots + u_r\, n_r=1$$
Secondly I was wondering whether an equivalence or just an implication relates the following properties:
- $ (n_1,\cdots , n_r)$ are pairwise coprime.
- $ \Big( \prod_{i\neq 1} n_i,\cdots ,\prod_{i\neq r} n_i \Big)$ are setwise coprime.
Edit: a relation as in the first $\ \bullet$ could be useful e.g. in the "kernel decomposition theorem". In addition to the comment and to the answer, an other way to obtain it is by induction to insert $1=u_1\, n_1 + \cdots + u_{r-1}\, n_{r-1}$ into $$\begin{split} 1 &= n_r - (n_r-1)\times 1= n_r - (n_r-1)\times (u_1\, n_1 + \cdots + u_{r-1}\, n_{r-1})\\ &= n_r + \tilde{u}_1\, n_1 + \cdots + \tilde{u}_{r-1}\, n_{r-1} \end{split}$$