No of pairs (a[j] >= a[i]) with k numbers in range (a[i], a[j]) that are divisible by x
Given an array and two numbers x and k. Find the number of different ordered pairs of indexes (i, j) such that a[j] >= a[i] and there are exactly k integers num such that num is divisible by x and num is in range a[i]-a[j]. Examples: Input : arr[] = {1, 3, 5, 7} x = 2, k = 1 Output : 3 Explanatio