You have a 5x5 matrix. The numbers 1,2,3,4 and 5 appear in every row and in every column exactly once....

You are given a 5x5 matrix. The numbers 1,2,3,4 and 5 appear in every row and in every column exactly once. The diagonal from the lower left to the upper right also has the numbers 1,2,3,4, and 5 appear exactly once. Prove that all numbers under the diagonal (10 cells) must have a sum greater than 21.

 

True in a way (his question got rejected on stack overflow lmao)

 
Most Helpful

A better way to think of it might be to show that you already exceed 21 in a scenario with only two of the constraints:

Consider this picture:

5 5 5 5 5

4 4 4 4 4

3 3 3 3 3

2 2 2 2 2

1 1 1 1 1

If we only impose the columns and diagonal conditions, the lowest possible sum we can create underneath the diagonal is 20. Let's call this matrix A. Imposing another condition (namely that we have exactly one of 1, 2,... in each row) would require that the new sub-diagonal sum should be AT LEAST 20, or the sub-diagonal sum of A. You can then go about imposing the constraint on the rows, arguing that the sub-diagonal sum would increase by at least 2.

 

Assume sum is <= 21. You must have >= 4 of some value A in the lower right triangle (3 1s, 2s, 3s, and a 4 sum to 22). These 4 As must appear on the diagonal of the lower right triangle to satisfy the row/col constraint. Then A cannot appear in the main diagonal by the row col constraint. Contradiction.

this also show that 22 is not possible as 3 triples don’t fit in the lower right triangle and 3 triples is the only way to form 22.

in fact I believe that it is not possible to use just 4 distinct values in the lower right triangle (can’t have 4 or 5 of a single value, can’t have  3 triples, and need at least 1 of the 4 values to be a singleton. You can’t make these combination work with just 4 distinct values as 3321 adds to 9.)

This means the new minimum is 3 1s, 3 2s, 2 3s,  one 4, one 5 which adds to 24. Even this I think doesn’t work but it needs some more complicated logic than just counting. 26 is an upper bound for sure.

 

Ignoring diagonal constraint, minimum way to pack the lower half is

xxxxx
xxxx1
xxx12
xx123
x1234

That sums to 20.

However, this will violate the diagonal constraint as it implies two 5s:

xxxx5
xxxx1
xxx12
xx123
51234

So the sum has to be more than 20.

We can try to move a 5 into the lower half. Swapping it with the only 4 allows us to increase the sum by only one to 21:

xxxx4
xxxx1
xxx12
xx123
51235

This violates another constraint as two 5s are in the same row.

Furthermore, there’s only one possible 4 for 5 to swap with, so there’s no other way to limit the sum to 21.

Therefore, any other lower half that meets all the conditions must be greater than 21.

 

I also love sudoku 

"The obedient always think of themselves as virtuous rather than cowardly" - Robert A. Wilson | "If you don't have any enemies in life you have never stood up for anything" - Winston Churchill | "It's a testament to the sheer belligerence of the profession that people would rather argue about the 'risk-adjusted returns' of using inferior tooth cleaning methods." - kellycriterion
 

Qui voluptatem non a et quos ad animi perspiciatis. Id quia dolore aut nam maiores neque sunt. Molestias ex expedita tempore minus nam sit nostrum ratione.

Suscipit tempora laborum vitae minima. Voluptas temporibus quam non. Esse quisquam quas quae suscipit. Ipsa eos et aspernatur et ea magnam.

Est qui consectetur omnis iusto. Quibusdam impedit ipsam quasi quibusdam reprehenderit. Fugiat quaerat sint aperiam voluptates quisquam voluptates maxime. Laboriosam eius vero provident qui nihil quia. Hic maiores libero autem id et. Cupiditate eum soluta natus maxime aliquid.

Career Advancement Opportunities

May 2024 Hedge Fund

  • Point72 98.9%
  • D.E. Shaw 97.9%
  • Citadel Investment Group 96.8%
  • Magnetar Capital 95.8%
  • AQR Capital Management 94.7%

Overall Employee Satisfaction

May 2024 Hedge Fund

  • Magnetar Capital 98.9%
  • D.E. Shaw 97.8%
  • Blackstone Group 96.8%
  • Two Sigma Investments 95.7%
  • Citadel Investment Group 94.6%

Professional Growth Opportunities

May 2024 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 97.9%
  • D.E. Shaw 96.9%
  • Magnetar Capital 95.8%
  • Citadel Investment Group 94.8%

Total Avg Compensation

May 2024 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (23) $474
  • Director/MD (12) $423
  • NA (6) $322
  • 3rd+ Year Associate (24) $287
  • Manager (4) $282
  • Engineer/Quant (71) $274
  • 2nd Year Associate (30) $251
  • 1st Year Associate (73) $190
  • Analysts (225) $179
  • Intern/Summer Associate (22) $131
  • Junior Trader (5) $102
  • Intern/Summer Analyst (250) $85
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
Secyh62's picture
Secyh62
99.0
4
Betsy Massar's picture
Betsy Massar
99.0
5
CompBanker's picture
CompBanker
98.9
6
kanon's picture
kanon
98.9
7
dosk17's picture
dosk17
98.9
8
GameTheory's picture
GameTheory
98.9
9
numi's picture
numi
98.8
10
Jamoldo's picture
Jamoldo
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”