An array arr has indices numbered from 1 to N. You are given Q queries with two integers, iX in each.
Write a program to find the number of multiples of X in the array arr that falls between the \(i^{th} index and the end of the array.
Input format
Output format
For each query, print the number of multiples of \)X\( in the array \)arr\( that falls between the \)i^{th} index and the end of the array.
Constraints
1≤N≤105
1≤Q≤105
1≤X≤20000
1≤arr[i]≤20000
There are two numbers, 6 and 2, after the index 2 divisible by 2.