A heterosquare contains positive consecutive integers starting from 1 such that the rows, columns, and diagonals add to all different values. If the sums resulting from a heterosquare form a consecutive sequence, the heterosquare is also called an anti-magical square .
Assume that a anti-magical square exists. It is already known that the minimum value of the sum of any row in this anti-magical square is 5050 and that the maximum value of the sum of any row is 995050, so there are 989800 sequences you have to consider: from to .
Without using brute force (i.e. testing all heterosquares using a computer) or calculating the value of any row, column, or diagonal, how many sequences could you eliminate?
If, after eliminating, you still have sequences left, and the smallest value of every sequence is , find
Note
: If your answer is different, feel free to report in any way.
P/S: Generalize, and don't try to find a anti-magic square despite its existence!
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Suppose that the row sums of a N × N antimagic square are r 1 , r 2 , . . . , r N , that the column sums are c 1 , c 2 , . . . , c N , and that the column sums are d 1 , d 2 . Suppose that the collection of sums forms the sequence a , a + 1 , a + 2 , . . . , a + 2 N + 1 . Let m N = 2 1 N ( N 2 + 1 ) . Note that r 1 + r 2 + ⋯ + r N = c 1 + c 2 + ⋯ + c N = 1 + 2 + 3 + ⋯ + N 2 = 2 1 N 2 ( N 2 + 1 ) = N m N and hence 2 N m N + d 1 + d 2 = ( r 1 + ⋯ + r N ) + ( c 1 + ⋯ + c N ) + d 1 + d 2 = a + ( a + 1 ) + ⋯ + ( a + 2 N + 1 ) = ( N + 1 ) ( 2 a + 2 N + 1 ) and so 2 a + 1 = a + ( a + 1 ) ≤ d 1 + d 2 = ( N + 1 ) ( 2 a + 2 N + 1 ) − 2 N m N ≤ ( a + 2 N ) + ( a + 2 N + 1 ) = 2 a + 4 N + 1 so that m N − N − 2 3 ≤ a ≤ m N − N + 2 1 and hence a = m N − N − 1 or a = m N − N .
Assuming that both possibilities are achievable, we obtain the answer 2 + ( m N − N − 1 ) + ( m N − N ) = 2 m N − 2 N + 1 With N = 1 0 0 , we obtain the answer 9 9 9 9 0 1 .