a long hint: does writing $T$ as a linear combination of the powers of $P $ where $p_{i i-1} = 1$ and zero every where else. $P$ has eigenvalues the $n$th roots of unity. so $T$ thaw $a_1+a_2\omega+a_3\omega^2+\cdots$ and the determinant of $T$ is the product of $(a_1+a_2\omega+a_3\omega^2+\cdots)(a_1+a_2\omega+a_3\omega^2+\cdots))\cdots$
showing that the determinant is nonzero reduces to showing that all the factors are nonzero. that is if $\omega$ in an $n$th root of unity and $a_1, a_2, \cdots$ are non negative and not all equal, then $$(a_1+a_2\omega+a_3\omega^2+\cdots )\
eq 0$$
it is more likely to be true if $n$ is a prime number. i am not sure if it is true for nonprime numbers. e.g., take $n = 4, \omega = i, a_1 = a2 = -a_3 = -a_4 = 1 $