It is given positive integer $N$. Let $d_1$, $d_2$,...,$d_n$ be its divisors and let $a_i$ be number of divisors of $d_i$, $i=1,2,...n$. Prove that $$(a_1+a_2+...+a_n)^2={a_1}^3+{a_2}^3+...+{a_n}^3$$
Problem
Source: Regional Olympiad - Federation of Bosnia and Herzegovina 2017
Tags: Divisors, number theory, number of divisors