9th Mexico 1995 Problem A1 N students are seated at desks in an m x n array, where m, n ≥ 3. Each student shakes hands with the students who are adjacent horizontally, vertically or diagonally. If there are 1020 handshakes, what is N?