@Chris'ssistheartist @SamuelYusim We have $t^n - 1 = (t-1)(t^{n-1} + t^{n-2} + \dots + t + 1)$, so $(t^n - 1)/(t-1) = t^{n-1} + t^{n-2} + \dots + t + 1$.
$(t^n - 1)/(t-1) \mod (t-1) \equiv (t^{n-1} + t^{n-2} + \dots + t + 1) \mod (t-1)$
I haven't really understood how we get $n \mod (t-1)$. Could you explain it to me?