I have a function which produces a polynomial in $t$ with positive integer coefficients, and I know that these factor as product of $t-$ numbers of the form $[k]_t = 1+t+...+t^{k-1}$ . Is there a way to factor the polynomials in sage which readily give the factorization in terms of the $t-$numbers?
For example, I have a polynomial $(t^2-t+1)(t^2+t+1)(t+1)$. I want the program to return $[6]_t$.