Loading web-font TeX/Math/Italic

Problem #358

Diagonal Dominance

You are given an n \times n matrix filled with the numbers 1, 2, 3, \ldots, n^2. The matrix is arranged such that every row (from left to right) and every column (from top to bottom) is sorted in strictly increasing order. Let a_{ij} denote the number at the intersection of the i-th row and j-th column.

For each i where 1 \leq i \leq n, define b_i as the number of distinct entries that can appear in the diagonal position a_{ii}. Your task is to find the sum b_1 + b_2 + \cdots + b_n for n = 1000.

Contributed by SHUBHAM KUMAR VERMA

Solved by 112 users

Log in to submit answers.

Is something wrong?

Maintaining a collection of high quality questions is our top priority. If, however, you do find an error, report the problem and we'll make sure it is reviewed soon.