You will be given a positive integer N.Your task is to find the number of pairs of non negative integers (a,b), 1 ≤ a < b ≤ N such that a divides b2 - 1 and b divides a2 - 1.
The first line of input contains a single integer T denoting the number of test cases. Then T test cases follow. Each test case consists of exactly one line which has a single positive integer N.
Corresponding to each test case, in a new line, print the number of such pairs.
1 ≤ T ≤ 200
2 ≤ N ≤ 105
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.