I am studying some papers in which the notation ${\cal O}_{\mathbb{CP}^1}(-1)$, ${\cal O}_{\mathbb{CP}^1}(-2)$ and ${\cal O}_{\mathbb{CP}^1}(1)$ appear. I am not familiar with that notation and while I have already found out ${\cal O}_{\mathbb{CP}^1}(-1)$ is the tautological line bundle, I haven't found what the others mean and want to understand this more generally, because surely there has to be some uniform definition that recovers the tautological line bundle as a special case.
I believe this is not special to $\mathbb{CP}^1$, and I also don't think there is something special about those numbers $-1,-2$ and $1$. So I imagine there is some general meaning for $\mathcal{O}_{\mathbb{CP}^n}(k)$ where $k\in \mathbb{Z}$.
My question is: what does $\mathcal{O}_{\mathbb{CP}^n}(k)$ mean and how to understand it? Is it really something defined for any $k\in \mathbb{Z}$ or for only some values like $-2,-1$ and $1$? If only for some numbers, why is it the case?
$\newcommand{\Cpx}{\mathbf{C}}\newcommand{\Sheaf}[1]{\mathcal{O}_{\mathbf{P}^{1}}(#1)}$tl; dr: These bundles are defined for each integer, and over projective spaces of arbitrary dimension. Geometrically, over the projective line:
In intrinsic detail, construct the projective line from two copies $U_{0}$ and $U_{1}$ of the complex line with coordinates $z^{0}$ and $z^{1}$. (It may be clearer at first to write $z = z^{0}$ and $w = z^{1}$. The indexing below generalizes to higher-dimensional projective spaces.) For each integer $k$, the holomorphic line bundle $\Sheaf{k}$ may be trivialized over $U_{0}$ and $U_{1}$ by coordinates $(z^{0}, \zeta^{0})$ and $(z^{1}, \zeta^{1})$, glued together by the identification $$ z^{0} = \frac{1}{z^{1}},\qquad \zeta^{0} = \frac{\zeta^{1}}{(z^{1})^k}. $$ That is, the transition function from $z^{0}$ to $z^{1}$ is $$ g_{01}(z^{0}) = \frac{1}{(z^{0})^{k}}. $$ A holomorphic section of $\Sheaf{k}$ is represented by holomorphic functions $\zeta^{0} = f_{0}(z^{0})$ and $\zeta^{1} = f_{1}(z^{1})$ satisfying $$ g_{01}(z^{0}) f_{0}(z^{0}) = f_{1}(z^{1}). $$