You are given an array A of N positive integers. Find the number of pairs (i,j) such that:
Input format
Output format
For each test case, print the number of pairs, in a new line, satisfying the equation.
Constraints
1≤T≤101≤N≤1051≤A[i]≤103
Valid pairs (i,j) are :-