Problem:
On an infinite checkerboard, the union of any two distinct unit squares is called a (disconnected) domino. A domino is said to be of type , with integers not both zero, if the centers of the two squares are separated by a distance of in one orthogonal direction and in the other. (For instance, an ordinary connected domino is of type , and a domino of type contains two squares separated by a knight's move.)

Each of the three pairs of squares above forms a domino of type .
Two dominoes are said to be congruent if they are of the same type. A rectangle is said to be -tileable if it can be partitioned into dominoes of type .
Let be integers. How many different (i.e., noncongruent) dominoes can be formed by choosing two squares of an array?