Suppose the n2 numbers 1,2,3,…,n2 are arranged to form an n by n array consisting of n rows and n columns such that the numbers in each row(from left to right) and each column(from top to bottom) are in increasing order. Denote by ajk the number in j-th row and k-th column. Suppose bj is the maximum possible number of entries that can occur as ajj,1≤j≤n. Prove that
b1+b2+b3+⋯bn≤3n(n2−3n+5)
(Example: In the case n=3, the only numbers which can occur as a22 are 4,5 or 6 so that b2=3.)