â€‹Given a number x, your task is to find if this number is Deficient number or not. A number x is said to be Deficient Number if sum of all the divisors of the number denoted by divisorsSum(x) is less than twice the value of the number x. And the difference between these two values is called the deficiency.
Mathematically, if below condition holds the number is said to be Deficient: divisorsSum(x) < 2*x deficiency = (2*x) - divisorsSum(x)
Divisors are 1, 3, 7 and 21. Sum of divisors is 32.
This sum is less than 2*21 or 42.
The first line of input contains an integer T denoting the no of test cases.
Then T test cases follow. Each line contains an integer x.
For each test case in a new line print 1 if the no is a Deficient number else print 0.