Problem

Source: Indonesia TST 2009 First Stage Test 2 Problem 1

Tags: geometry, rectangle, combinatorics proposed, combinatorics



Given an $ n\times n$ chessboard. a) Find the number of rectangles on the chessboard. b) Assume there exists an $ r\times r$ square (label $ B$) with $ r<n$ which is located on the upper left corner of the board. Define "inner border" of $ A$ as the border of $ A$ which is not the border of the chessboard. How many rectangles in $ B$ that touch exactly one inner border of $ B$?