There are two integer arrays of size N, called arr and C. They satisfy the following relation.
C[0]=arr[0],C[i]=gcd(C[i−1],arr[i])(1≤i≤N−1)
Here gcd(x,y) is the greatest common divisor of x and y.
For example, arr=[16,16,8,16,2] gives C=[16,16,8,8,2].
Given the array C, find the number of arrays arr that produce it, modulo 1000000007 (109+7). Every element of arr is an integer between 1 and num.