Suppose there are no two numbers are the same, then the N absolute values are 0, 1, 2... (N-1) sum(a-a')=0 sum|a-a'|=0+1+...+(N-1)=N(N-1)/2 As (a-a') and |a-a'| are either both ever or both odd, if N(N-1)/2 is odd, then the assumption is wrong. if N is even, N=2m, N(N-1)/2=2m*(2m-1)/2=m*(2m-1), m must odd, so N=2m=2(2k+1)=4k+2 If N is odd, N=2m+1, N(N-1)/2=(2m+1)*2m/2=(2m+1)*m, m must be odd, so N= 2m+1=2(2k+1)+1=4k+3 Therefore N=4k+2, or 4k+3 |
can you prove it is false for 4k and 4k+1? |
看来你今天想把我累死啊? 那么那道三位数的题你还没证明 42不行呢! |
1,2,3,4 2,4,3,1 The difference is 1,2,0,3. |
For N=12: (1,12), (2,11), (3,10), (4,4), (5,9), (6,8), (7,6), (8,5), (9,3), (10,2), (11,1), (12,7) For N=13: (1,13), (2,12), (3,11), (4,4), (5,10), (6,9), (7,8), (8,6), (9,5), (10,3), (11,2), (12,1), (13,7) Same pattern should work for all k. |
I found counter exampls for N=4,5,8,9,12,13, but I could not find a clear pattern like yours. |
I know you will get it. I just don't want it to fall too low. (Too many new problems ) |
欢迎光临 珍珠湾ART (http://zzwav.com/) | Powered by Discuz! X3 |