$\begin{array}{l}a)\ \text{$A$ là phân số $\Leftrightarrow \begin{cases} n\in\mathbb{Z}\\n+1\neq0\end{cases}\\\Leftrightarrow \begin{cases} n\in\mathbb{Z}\\n\neq-1\end{cases}\\\Leftrightarrow n\in\{\dots ;-3;-2;0;1;2;\dots \}$}\\\,\\b)\ \text{$A$ là phân số $\Leftrightarrow \begin{cases} n\in\mathbb{N}\\ n\neq-1\ \text{(luôn đúng với mọi $n\in\mathbb{N})$}\end{cases}\\\Leftrightarrow n\in\{0;1;2;3;\dots\}$} \end{array}$