$\text{Let } v_1=\begin{pmatrix}a \\ 1 \\ 1\end{pmatrix}, \ v_2 = \begin{pmatrix}1 \\ a \\ 1\end{pmatrix},\ v_3 = \begin{pmatrix}1 \\ 1 \\ a\end{pmatrix}.\ \text{Determine } a\in\mathbb{R} \text{ such that the previous vectors form a basis for }\mathbb{R}^3$.
Though I have an idea for how to solve this, I am not sure if my logic is correct. Here's what I have thought of. For $v_1, v_2,v_3$ to be a basis, they need to satisfy two conditions: they are linearly independent and form a sistem of generators. And so I check both conditions: $$v_1,v_2,v_3 \text{ linearly independent} \Rightarrow (\alpha_1 v_1 + \alpha_2 v_2 + \alpha_3 v_3 = 0,\ \alpha_1,\alpha_2,\alpha_3\in\mathbb{R} \Rightarrow \alpha_1 = \alpha_2 = \alpha_3 = 0)$$
The first relation creates the following system of equations: $$\begin{cases}a\alpha_1a+\alpha_2+\alpha_3 = 0 \\ \alpha_1 + a\alpha_2+\alpha_3=0 \\ \alpha_1 + \alpha_2 + a\alpha_3 = 0\end{cases}, \text{ where } \alpha_1,\alpha_2,\alpha_3 \text{ are the unkowns and } a \text{ is a parameter.}$$ This system, we know, has the solution $\alpha_1=\alpha_2=\alpha_3=0$. For the vectors to be linearly independent, this needs to be the only solution of the system, which means the determinant of the system needs to be not null: $$\begin{vmatrix}a & 1&1\\1 & a & 1 \\ 1&1&a\end{vmatrix} \neq 0 \iff (a+2)(a-1)^2\neq 0 \iff a \in\mathbb{R}\setminus\{-2, 1\}$$
We now need to check if the vectors form a system of generators. We need to check that $$\forall x,y,z\in\mathbb{R}, \exists \alpha_1,\alpha_2,\alpha_3\in\mathbb{R} \text{ such that } \begin{pmatrix}x\\y\\z\end{pmatrix} = \alpha_1 v_1 + \alpha_2 v_2 +\alpha_3 v_3$$
The following system is obtained: $$\begin{cases}a\alpha_1 + \alpha_2 + \alpha_3 = x \\ \alpha_1 + a\alpha_2 + \alpha_3 = y \\ \alpha_1 + \alpha_2 + a\alpha_3 = z\end{cases}$$
This system needs a solution for every $x,y,z$, so I attempt to solve using echelon form: $$\begin{pmatrix}a & 1 & 1 & | & x \\ 1 & a & 1 & | & y \\ 1 & 1 & a & | & z \end{pmatrix} \sim \begin{pmatrix}1 & 1 & a & | & z \\ 0 & a-1 & 1-a & | & y-z \\ 0 & 0 & 2-a-a^2 & | & x+y-2z\end{pmatrix} \Rightarrow (a+2)(a-1)\alpha_3 = x+y-2z$$
Here is where I get stuck. Let's pretend I started the problem by checking for the system of generators condition first (which means I wouldn't know that $a$ cannot be $1$) Is $a\neq1$ and $a\neq2$ a condition I should add now? Or does it not matter? By which I mean that, if, say, $a=2$, then $\alpha_3$ can be any number in $\mathbb{R}$, and we will find $\alpha_1$ and $\alpha_2$ depending on whatever value $\alpha_3$ is. I think that this step does not exclude $a$ from being neither $1$ nor $2$, but I am not sure. At the same time, I do not know if this part is supposed to bring along any new conditions or if it simply checks that the vectors form a system of generators. Any help is much appreciated!
If it's a space in $\mathbb{R}^3$ then, like you said, $\begin{vmatrix}a&1&1\\1&a&1\\1&1&a\end{vmatrix}\neq0.$
Let's calculate:
$a\ast\begin{vmatrix}a&1 \\ 1&a \end{vmatrix}-1\ast\begin{vmatrix}1&1\\1&a\end{vmatrix}+1\ast\begin{vmatrix}1&1\\a&1\end{vmatrix}=a(a^2-1)-1(a-1)+1(1-a)=a^3-a-a+1+1-a=a^3-3a+2\neq0.\Longrightarrow \fbox{$a\neq -2,1$}$