SQNUMBF - Editorial

q starts from 1,and for q=1, A[1]/q will be b^2 which is a perfect square. So, the answer is b in this case.