Given N, count all ‘a’(>=1) and ‘b’(>=0) that satisfy the condition a3 + b3 = N.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains integer N.
For each testcase, in a new line, print count of all 'a' and 'b' that satisfy the above equation.
1 <= T <= 100
1 <= 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.