Let $ d_{1}, d_{2}, \ldots, d_{l}$ be all positive divisors of a positive integer $n$. For each $i=1,2, \ldots, l$ denote by $a_{i}$ the number of positive divisors of $d_{i}$. Then $ a_{1}^{3}+a_{2}^{3}+\cdots+a_{l}^{3}=\left(a_{1}+a_{2}+\cdots+a_{l}\right)^{2} $
Solution. hint says, we have to use this but I am not getting why these both are true ???
$ \begin{aligned} a_{1}+a_{2}+\cdots+a_{l} &=\sum_{d \mid n} \tau(d)=\prod_{i=1}^{k}\left(1+\tau\left(p_{i}\right)+\cdots+\tau\left(p_{i}^{\alpha_{i}}\right)\right) \\ a_{1}^{3}+a_{2}^{3}+\cdots+a_{l}^{3} &=\sum_{d \mid n} \tau(d)^{3}=\prod_{i=1}^{k}\left(1+\tau\left(p_{i}\right)^{3}+\cdots+\tau\left(p_{i}^{\alpha_{i}}\right)^{3}\right) \end{aligned} $