Recently, I have found this statement and I try to solve as exercise.
Consider a vector space $V$ with finte dimension $n\geq 1$ and $T\in End(V)$ with $m^T(t)=\prod_{i=1}^{r}p_i(t)^{e_i}$, where $p_i(t)$ is a monic and irreducible polynomial in $\mathbb{K}[t]$ and $e_i\geq 1$ for all $i=1,\dots,r$. Then you have to find $r$ polynomials $f_i(t) \in \mathbb{K}[t]$ such that $T_i=f_i(T)\in End(V)$ satisfies the following properties:
(1) $T_i$ isn't the null endomorphism;
(2) $\sum_{i=1}^{r}T_i=id_V$;
(3) $T_i\circ T_j=T_j\circ T_i=0$ for all $i\neq j$;
(4) $Im(T_i)=ker(p_i(T)^{e_i})$ for all $i$;
(5) $V=Im(T_1)\oplus\dots\oplus Im(T_r)$
Attempt: We consider $h_i(t)=\prod_{j\neq i}p_j(t)^{e_j}$. Since $g.c.d.(h_1(t),\dots,h_r(t))=1$, for the Bezout's identity we have that there exist $g_1(t),\dots,g_r(t)\in \mathbb{K}[t]: g_1(t)h_1(t)+\dots+g_r(t)h_r(t)=1$. We set $f_i(t)=g_i(t)h_i(t)$, so $f_i$ should be good for the thesis. What do you think?
For instance, I try to summarize the first claim. We suppose by contradiction that $T_i$ is the null endomorphism; it follows that $m^T(t)|h_i(t)g_i(t)$, so $p_i(t)^{e_i}|g_i(t)$. Hence $$ g_1(t)h_1(t)+\dots+p_i(t)^{e_i}q_i(t)h_i(t)+g_r(t)r_r(t)=1$$
so
$$ p_i(t)^{e_i}[g_1(t)h_1(t)+\dots+q_i(t)h_i(t)+g_r(t)r_r(t)]=1$$
Then $p_i(t)^{e_i}$ is invertible in $\mathbb{K}[t]$, so $p_i(t)^{e_i} \in \mathbb{K}^{*}$. Since $\mathbb{K}[t]$ is a domain, $\deg p_i(t)=0$, so $p_i(t)\in \mathbb{K}^*$, a contradiction with the irreducibility of $p_i(t)$.
(2) and (3) follow immediately. For (4) and (5) it is useful to use the Theorem of Primary Decomposition of a vector space and of a $T$-cyclic vector space.
If there are some mistakes, you can post it please.Thank you very much, best regards!
I add some terminologies and notations, related to the text.
Theorem of primary decomposition of a vector space
Let $V$ be a vector space with $dim_{\mathbb{K}}(V)=n \in \mathbb{N}$ and $T\in End(V)$. We suppose that $m^T(t)=\prod_{k=1}^rp_k(t)^{e_k}$. Then:
Theorem of primary decomposition of a $T$-cyclic vector space
Let $V$ be a vector space with $dim_{\mathbb{K}}(V)=n \in \mathbb{N}$ and $T\in End(V)$. We suppose that $m^T(t)=p(t)^{e}$. Then: