Let $K$ be a number field with $[K:Q] =n$. Let $O_k$ be its ring of algebraic integers.
I understand how there is an integral basis for $Q$, i.e. $\exists$ a $Q$-basis of $K$ consisting of elements of $O_k$. Let this integral basis be denoted by $\omega_1, \omega_2, \dots, \omega_n \in O_k$.
However, I do not understand how this leads to the fact that
$$\bigoplus_{i=1}^n Z\omega_i \subseteq O_k$$
Could someone elaborate please? Thank you.
That sum is (isomorphic to) the set of all numbers $\sum a_i\omega_i$ where the $a_i$ are integers. But if the $\omega_i$ are in $O_k$ then of course any integer linear combination of them is also in $O_k$.