For which $n$ is $\mathbb{A}^n(k)\setminus \{0\}$ an affine variety? I think for $n=0$ and $n=1$ it is.
For $n=0$, take the ideal $\mathfrak{a}:=(1)$ in $k[T]$. Then $V(\mathfrak{a})=\emptyset$ should be isomorphic to $\mathbb{A}^n(k)\setminus \{0\}$.
For $n=1$, take the ideal $\mathfrak{a}:=(T_1T_2-1)$ in $k[T_1,T_2]$. Then $V(\mathfrak{a})$ should be isomorphic to $\mathbb{A}^n(k)\setminus \{0\}$. The isomorphism is given by $f:V(\mathfrak{a})\to \mathbb{A}^n(k)\setminus \{0\}$, $(x,y)\mapsto x$.
For $n>1$ probably not, but I don't have a proof.
So my questions are:
Is it correct what I did for the cases $n\in\{0,1\}$?
How do I prove that $f$ in case $n=1$ is an isomorphism of spaces of functions?
What about the case for $n>1$?
Edit: As already noted in my comment: $\mathbb{A}^0(k)\setminus \{0\}$ is not affine because the empty set is not irreducible.