The numbers from 1 to 2
n are separated into two lists of
n numbers each, A and B; elements are ordered so a
1<a
2<...<a
n and b
1>b
2>...>b
n.
How much is |a1-b1|+|a2-b2|+...+|an-bn|?
(In reply to
thoughts by Josh70679)
If I take |1-4|+|2-3|, the first pair differs by 3>2=n, but the
second pair only differs by 1 which compensates. However,
individual terms can exceed n.
|
Posted by Richard
on 2005-07-12 17:15:22 |