Rami has a multiplicative array $$$A=[A_1,\dots,A_n]$$$ of size $$$n$$$. A multiplicative array is an array on which: $$$$$$ \forall u,v\in\{1,\dots,n\}/\quad \gcd(u,v)=1,\quad A_{uv}=(A_u\cdot A_v)\bmod M $$$$$$ with $$$M=10^9+7$$$
He will apply the following algorithm:
He wants to know the content of each element of the final array $$$A^{(m)}$$$, modulo $$$M=10^9+7.$$$
It is guaranteed that there exists $$$i$$$ such that $$$A_i \ne 0$$$
$$$n$$$ integers $$$B_1,\dots,B_n$$$ with $$$B_i=A^{(m)}_i$$$ the content of the final array.
10 2 1 0 0 0 0 0 0 0 0 0
1 2 2 3 2 4 2 4 3 4
10 5 1 2 3 4 5 6 7 8 9 10
1 7 8 29 10 56 12 93 39 70