If centre is (0,0) and radius is 5, then for x and y we need to test from -5 to +5 including 0.
But if we just try for x from 0 to 5. We know that potential combos are (5,0); (3,4).
For each number if we have positive and negative except of course 0 we have, 8 possibilities for (3,4) combination i.e. (3,4); (-3,4)...and so on including the reversal when x and y are interchanged.
For (5,0) we have 4 combinations i.e. (5,0); (-5,0) and so on including the reversal when x and y are interchanged.
So, total is 8+4 = 12 possibilities.
But if we just try for x from 0 to 5. We know that potential combos are (5,0); (3,4).
For each number if we have positive and negative except of course 0 we have, 8 possibilities for (3,4) combination i.e. (3,4); (-3,4)...and so on including the reversal when x and y are interchanged.
For (5,0) we have 4 combinations i.e. (5,0); (-5,0) and so on including the reversal when x and y are interchanged.
So, total is 8+4 = 12 possibilities.












