# 2012 AMC 12B Problems/Problem 25

## Problem 25

Let . Let be the set of all right triangles whose vertices are in . For every right triangle with vertices , , and in counter-clockwise order and right angle at , let . What is

## Solution 1

Four points in a rectangular arrangement allow 4 possible right angle triangles. These four congruent triangles will form two pairs of different vertice labelling - two ABC and two ACB. These pairs will multiple to equal 1 due to the fact that

Due to the missing point (0,0) in the grid then in the rectangular arrangement (0,0), (x,0), (x,y), (0,y) there is only one triangle which will not cancel out to zero with a reflected version.

So we need to consider all triangles of the form A(x,y), B(0,y), C(x,0). For these triangle .
Multiplying them all together gives:

## Solution 2

Consider reflections. For any right triangle with the right labeling described in the problem, any reflection labeled that way will give us . First we consider the reflection about the line . Only those triangles that have one vertex at do not reflect to a traingle . Within those triangles, consider a reflection about the line . Then only those triangles that have one vertex on the line do not reflect to a triangle . So we only need to look at right triangles that have vertices . There are three cases:

Case 1: . Then is impossible.

Case 2: . Then we look for such that and that . They are: , and . The product of their values of is .

Case 3: . Then is impossible.

Therefore is the answer.