Given a matrix $B$, what is $det(B^4)$? My task is this:
Compute det$(B^4)$, where 
$$B =\begin{pmatrix}
1 & 0 & 1\\
1 & 1 & 2\\
1 & 2 & 1
\end{pmatrix}$$
My work so far:
It can be shown that 
$B = 
\begin{pmatrix}
1 & 0 & 1\\
1 & 1 & 2\\
1 & 2 & 1
\end{pmatrix} \sim \begin{pmatrix}
1 & 0 & 1\\
0 & 1 & 2\\
0 & 0 & -4
\end{pmatrix}\implies B$ is invertable.
Applying theorem for determinants to triangular matrices we get det$(B) = 1*1*(-4)=-4$.
Appling the multiplicative property theorem, we should get that det$(B^4)=$det$(B)$det$(B)$det$(B)$det$(B)=[$det$(B)]^4=(-4)^4= 256.$
Now I need help from the community to verify if the reasoning is correct, because I've already had a fellow student telling me that the answer is 16, and indeed the textbook I'm using states the same, which makes me abit confused. So please point out my errors or verify that each step holds true.
Thanks in advance.
 A: I don't know how you have obtained 
$$\begin{pmatrix}
1 & 0 & 1\\
0 & 1 & 2\\
0 & 0 & -4
\end{pmatrix}$$
But making elementary operations ($R2\leftarrow R2-R1$, $R3\leftarrow R3-R1$) I obtain
$$\begin{pmatrix}
1 & 0 & 1\\
0 & 1 & 1\\
0 & 2 & 0
\end{pmatrix}$$
and then ($R3\leftarrow R3-2\cdot R2$):
$$\begin{pmatrix}
1 & 0 & 1\\
0 & 1 & 1\\
0 & 0 & -2
\end{pmatrix}$$
A: The issue here is that you are computing the determinant wrong. $\det(B) = -2$, therefore $\det(B^4) = 16$. To check it, you can use Sarrus rule:
$$\det(B) = b_{11}b_{22}b_{33}+b_{12}b_{23}b_{31}+b_{13}b_{21}b_{32}-b_{11}b_{23}b_{32}-b_{12}b_{21}b_{33}-b_{13}b_{22}b_{31}$$
$$= 1+0+2-4-0-1 = 3-5 = -2$$
A: Not need to go to a similar matrix at the beginning because  the determinant is easily got. $$\det\begin{pmatrix}
1 & 0 & 1\\
1 & 1 & 2\\
1 & 2 & 1
\end{pmatrix}=(1-4)+(2-1)=-2$$ Hence by multiplicative property of determinants you have the answer $16$. Your fellow student is right.
A: You made a mistake in your row reduction. The Row-reduced form should be $$B   \sim \begin{pmatrix}
1 & 0 & 1\\
0 & 1 & 1\\
0 & 0 & -2
\end{pmatrix},$$
which would give you the correct answer once plugged in with the determinant.
