Let n be a positive integer. Each point (x,y) in the plane, where x and y are non-negative integers with x+y<n, is coloured red or blue, subject to the following condition: if a point (x,y) is red, then so are all points (x′,y′) with x′≤x and y′≤y. Let A be the number of ways to choose n blue points with distinct x-coordinates, and let B be the number of ways to choose n blue points with distinct y-coordinates. Prove that A=B.
Please post your solutions. This is just a solution template to write up your solutions in a nice way and formatted in LaTeX. But maybe your solution is so well written that this is not required finally. For more information and instructions regarding the ISL/ILL problems please look here: introduction for the IMO ShortList/LongList project and regardingsolutions
This was actually in the contest, wasn't it?
It's kind of hard to put into words. The red points consists of a series of n columns of decreasing height (I mean decreasing starting from left to right, and I don't mean strictly decreasing). The blue points consist of the completion of the red columns up to the border of the triangle having vertices (0,0),(0,n−1),(n−1,0). At the same time, the blue and red sets can also be regarded as rows instead of columns.
A is simply the product of the lengths of all blue columns, while B is the product of the lengths of all blue rows. If we show that the same numbers, with the same multiplicities, appear in the collections of a) blue column lengths and b) blue row lengths, then we are clearly done. Call this assertion (∗).
The blue set can be regarded as the union of some maximal right triangles with the legs parallel to the axes of the plane (maximal in the sense that they aren't part of any other similar right triangles). The triangles are obtained as follows: from a point on the diagonal x+y=n−1 go down as far as you can without taking any red points. Now go to the right until you meet the diagonal again. The maximal triangles of this set are the ones we're looking for.
We can now prove the assertion (∗) by induction on n.
If there are points on the diagonal x+y=n−1 which are red, then it's easy to see that the number of blue columns of length 0 is equal to the number of blue rows of length 0, and we can look at the picture as the union of some smaller pictures (for smaller n's), by breaking the diagonal where it has red points. We use the induction hypothesis on these smaller pictures.
On the other hand, if no points on x+y=n−1 are red, then we can look at the points strictly below the diagonal x+y=n−1, and use the induction hypothesis on these. After we append the diagonal x+y=n−1 all lengths (of blue columns and rows) increase by 1, so we have shown what we wanted: the number of blue columns of length t is the same as the number of blue rows of length t for all 0≤t≤n.
Watch out: I might have reversed "red" and "blue" in some places.
Yes, this problem was on the IMO.
I did a bijection: assign to all lattice blue points on the line x+y=n−k the number k. Let nk the number of blue points labeled with number k. Let M be the maximum k such that nk>0. Then A, as well as B, is equal to the product of n numbers: nk, nk−1−nk, …, n1−n2 (draw a diagram and do the number assignment to see why).
If n=4, construct the set of points like this (or for any other n).
(3,0)(2,1)(1,2)(0,3)(2,0)(1,1)(0,2)(1,0)(0,1)(0,0)
Let C(n) be the number of blue points in column n, and D(n) be the number of blue points in diagonal n (starting from the diagonal that cuts through only the top left point). It is clear that the number of ways to choose an x coordinate is C(1)C(2)...C(n).
Call a coloring good if C(1),C(2),...C(n) is a permutation of D(1),D(2)...D(n). It is clear that a good coloring would satisfy the problem conditions. Obviously for n=1 any coloring is good. Suppose for some n any coloring is good.
To construct the set x+y<n+1, attach the row of points (n,0)...(0,n) above the set x+y<n. For example,
(3,0)(2,1)(1,2)(0,3)(2,0)(1,1)(0,2)(1,0)(0,1)(0,0)
is constructed by adding points (3,0)...(0,3) above the set x+y<4. Since any coloring of x+y<n is good, constructing x+y<n+1 adds 1 to each column and diagonal so it is also good. Now suppose we color a point red in the row (n,0)...(0,n). But coloring (a,n−a) is equivalent to coloring (a,n−a−1),(a−1,n−a−1) and (a,n−a) red. Note that the first two points lie within x+y<n, which remains good. However, by coloring (a,n−a), C(a) and D(n−a) are 0. Therefore, removing that point does not affect the goodness of x+y<n+1. This completes the induction, and since all colorings are good, A=B.
Wait... I think my solution is correct, but thinking I got it in 5 minutes makes me think otherwise.
You create a bijection. Suppose you have a configuration where the points B1, ..., Bk are blue and the points R1,...,Rl are red. Then you just switch the y coordinate by the x coordinate in each point. It's easy to see that all the points that were in the original line x+y=n are in the transformed line (x+y=y+x) and the red points still meet the conditions x′≤x and y′≤y, but now the blue points have distinct y coordinates instead of distinct x coordinates.
Its trivial proving that this transformation is equivalent to rotating the plane 90 degrees counter-clockwise and then reflecting it over the y-axis. Finally, since each of the planes with blue points having distinct x coordinates each correspond to exactly one plane with distinct blue y coordinates, and also each plane having blue points with distinct y coordinates corresponds to a plane having blue points with distinct x coordinates (for this case just perform the reverse transformation), then we can easily conclude that A=B.
I agree with grobber... it IS hard to put into words, but I hope it's clear enough.
Call P a critical point if it is red and there are no red points above or to the right of it. Call Q, the set of points P, "x-good" if it leads to a configuration where all the blue points have distinct x coordinates. Let Q' be the set of points P with their x and y coordinate points switched. Therefore, Q' is "y-good", where "y-good" is analogously defined. Since this is a bijection, QED.
I thought of the bijection solution, but we can also use recursion by seeing what happens if add a row, right?
If we take the n+1 by n+1, take out the bottom row, and assume the result for n, we get that for n+1, if the bottom row has k blue squares, the number of ways to choose distinct vertical blue points gets multiplied by k and the number of ways to choose distinct horizontal blue points gets multiplied by (2/1)...(k/(k-1))=k.
Confusedhexagon, it's pretty easy for an IMO P1, but then again people weren't as smart ten years ago. Also remember that in the early days of the IMO, there was not much combinatorics at all.
Just find a down-left-ward pointing corner of the blue and then the bijection does follow.
I found that solution, but also I found this other solution that I posted...
Will anyone tell me if it is correct?
I really want to know this lol.
Let A(p,.) be red point with p maximal, B(.q) be the point with q maximal among red point. (A and B can be equal).
Point C(h,k) is blue iff h>p or k>q. To choose n blue points with distinct x− coordinates {(0,k0),...,(n−1,kn−1)} it necessarily that : n>k0>q,n−1>k1>q,...,n−p>kp>q and kp+1<n−(p+1),...,kn−1<n−(n−1) which gives a number (if it is not equal to zero i.e p+q not large enough) of possible configurations p+1∏i=1(n−i−q)n−1∏i=p+1(n−i)=(n−(q+1))!(n−(p+1))!(n−p−q−2)!
This is symmetric with respect to p and q so it is also equal to the number of configurations with distinct y− coordinates.
Ok....
Hard to put in words.........
Still I'll give it my best shot.
Let ai denote the number of blue points with coordinate xi
and bi denote the number of blue points with coordinate yi
Now we have to prove ∏n−1i=0ai=∏n−1i=0bi
Let (xi,yi) denote the rightmost red point of the form (k,yi)
Observe that xi≥xi+1
Then quite easily, the number of blue points of the form (xi,a) is (n+1−xi−yi) (since x+y≤n, the above lines)
Thus ∏n−1i=0ai=∏n−1i=0(n+1−xi−yi)
The same result is true when we replace xi by yi
That is,
∏n−1i=0bi=∏n−1i=0(n+1−xi−yi)⟹∏n−1i=0ai=∏n−1i=0bi⟹A=B
Call a line integral if its equation is x=k or y=k, where k is a non-negative integer less than n. Consider one such configuration of red and blue points in the plane. Let xm be the maximum possible x-coordinate of a red point, and ym be the maximum possible y-coordinate of a red point, where 0≤xm,ym≤n−1. Then, from the given condition, we can draw a broken line κ, with all points of κ lying on integral lines, and which starts from P(xm,0) and ends at Q(0,ym), such that all red points lie either on or inside the region bounded by the coordinate axes and κ. Note that if κ is symmetric about the line y=x, then A and B must also be equal (by symmetry). So, from now on, assume that κ is not symmetric about the line y=x.
Choose n blue points with different x-coordinates, and name them A1(0,a1),A2(1,a2),…,An(n−1,an). Then this selection is a part of A (as given in question). Similarly, choose one such selection B1(b1,0),B2(b2,1),…,Bn(bn,n−1), which is a part of B. Now, reflect the whole figure about the line y=x. Then we get another configuration which satisfies all the given conditions, with the only difference being that now κ is present from P′(ym,0) to Q′(0,xm). In this case the previously chosen points become A′1(a1,0),A′2(a2,1),…,A′n(an,n−1), i.e. they become blue points with distinct y-coordinates. Then these points form one way out of B′, as these points all lie outside κ. Similarly, we get the points B′1(0,b1),B′2(1,b2),…,B′n(n−1,bn), which are being counted in A′. Call this plane the inverse of the configuration chosen initially. As κ is not symmetric about the line y=x, so the inverse of each configuration must be different from itself. Thus, inversion of the plane is a bijection. But, as the inverse of the plane is symmetric to the original configuration about the line y=x, the number ways of choosing blue points with distinct x-coordinates must be equal for both configurations, or equivalently A′=A. In a similar fashion, we get B′=B. Thus, Combining everything we have assimilated so far, we get B′=A=A′=B, thus giving A=B. Hence, done. ◼
REMARK (for those who gave TOT 2018 Senior O-Level ): This problem is quite easy, but expressing the whole idea in words is quite difficult tbh (as you can see from my solution ). In the end, this idea is quite similar to the one that I used to solve this year's Tournament of Towns Senior O-Level P5, in which case we had to join two 50X100 boards to form a 100X100 board, and then reflect those kings present on white cells of the first 50X100 board to the black cells of the second 50X100 board.
EDIT (26 Jan 2020): This solution seems incorrect to me now that I read it. It might be possible that I am missing something which I had in mind while writing this solution, but in any case this is a really badly written solution. I'll try to correct this later if I get time
Let ax denote the number of blue points with a given x-coordinate, and define by similarly.
We actually claim that
Claim: The multisets Adef={ax∣x} and Bdef={by∣y} are equal.
Proof. By induction on the number of red points. If there are no red points, then A=B={1,…,n}. Now suppose we color one point P=(x,y) red. Before the coloring, we have ax=by=n−(x+y); afterwards ax=by=n−(x+y)−1 and no other numbers change, as desired. Since every permissible set of red points can be built inductively this way (indeed it's a Young tableaux!) this implies the result. ◼
Finally, A=n−1∏x=0ax=n−1∏y=0by=B.
orl wrote:
Let n be a positive integer. Each point (x,y) in the plane, where x and y are non-negative integers with x+y<n, is coloured red or blue, subject to the following condition: if a point (x,y) is red, then so are all points (x′,y′) with x′≤x and y′≤y. Let A be the number of ways to choose n blue points with distinct x-coordinates, and let B be the number of ways to choose n blue points with distinct y-coordinates. Prove that A=B.
Notice that the red points form a "staircase". For each 0≤i,j<n, let xi denote the number of blue points with x coordinate i and yj denote the number of blue points with y coordinate j. We need to show that ∏n−1i=0xi=∏n−1j=0yj, to conclude.
We induct on the number of red points. If there is none; we're done. Otherwise, any time a red point is added, it must be added to the North-East of an "L" vertex of the staircase, to increase the number of red points by 1. Then, suppose (a,b) was now marked red; except xa and yb, none of the xi's or the yj's change. Also, xa↦xa−1 and yb↦yb−1 but xa=yb, if (a,b) was added to the NE neighbor of an "L" vertex, anyway, so we're done.
Wait I’m having a hard time understanding the problem... I’m pretty sure I’m completely misinterpreting this problem, because if you just reflect the whole thing on y=x, the sum of old A+new A=sum of old B+new B, and it’s obvious that there’ll be “a bijection” between these flips, as if you flip it twice you get it back to its original state... is that it? What am I missing?
It is easy to see that if (x,y) blue, then all (x′,y′) with x′≥x and y′≥y also blue. This means we can bound all the blue points from below by a staircase'' path from (0,n−1) to (n−1,0) not crossing x+y=n. All points on and above this path are blue, and no other points are blue.
Let bi be the number of blue points with x-coordinate i, and let ai be the number of blue points with y-coordinate i. We want to show that ∏n−1i=0ai=∏n−1i=0bi. We claim that in fact, the multisets {ai}={bi}, from which our desired result clearly follows.
Let (xi,yi) be the lowest blue point with y-coordinate yi. Then the number of blue points with y-coordinate i is n−xi−yi, since there are n−xi points with x-coordinate i, but only such points with y-coordinate yi or more are blue. So ai=n−xi−yi. Similarly, the number of blue points with y-coordinate j is n−yj−xj. (We are basically reflecting everything over y=x.) So bj=n−yj−xj. Hence, {ai} and {bi} are the same multiset, and we are done.
This is a somewhat novel approach; instead of bijecting the multisets directly to each other or whatever, we're going to biject arrangements of unique x coordinates to a path that follows a set of symmetric guidelines. I think that it is very precise and easy to word, while not actually requiring any form of technical details, which makes this solution really nice in my opinion.
This is equivalent to the condition that there is a path from the y axis to the x axis bounding the red points, which allows the rest of the argument to follow.
We claim that the number of ways to choose n blue points with distinct x coordinates bijects to the number of paths from (0,n−1) to (n−1,0) that satisfy the following conditions:
\begin{itemize}
\Item The path only goes to the right or down.
\Item The path passes through no red points.
\Item Every point $(x,y)$ on the path satisfies $x+y\leq n,$ and $x,y$ are both non-negative.
\end{itemize}
Let the bottommost points on the path for each unique x coordinate be the points we pick; note that the path uniquely determines the points we pick, and the points we pick uniquely determines the path.
But there is nothing special about x coordinates versus y coordinates, so the same logic holds for y coordinates. Thus we must have A=B by the transitive property.
Define DN={(x,y)∈Z2≥0|x+y=N}. By the problem's condition, there exists k∈Z≥0 such that Dk has at least one blue point and D0,D1,...,Dk−1 have all its points red. Clearly, Dk+1 have all its points blue, otherwise all the points in Dk would be red, contradiction.
Hence, suppose that Dk has m≥1 blue points in it. Each of these points has exactly n−k points above it, thus we have (n−k+1)m ways to choose points with the same x−coordinate of the m blue points in Dk.
Similarly, we have (n−k)k−m ways to choose the blue points with the same x−coordinate of the red points in Dk.
Then, the other blue points that weren't considered to be chosen will have x−coordinate at least k+1 and y−coordinate at most n−k, forming a blue staircase with n−k,n−k−1,...,1 blue points in each column.
Thus, we have (n−k)! ways to choose these blue points. ⟹A=(n−k)!(n−k)k−m(n−k+1)m
Since the expression is symmetric in n,k,m, we similarly find that B=(n−k)!(n−k)k−m(n−k+1)m⟹A=Bas desired.
◼
No. I mean that the reds can lie in a more complicated configuration than the ones covered by your cases (they do not need to form a "complete triangle").
omg i actually solved a combo. marabot solve btw
We further claim that the number of blue points of each x coordinate is the same as the number of blue coordinates of each y coordinate up to permutation. We will prove this using strong induction on n, with the base case n=1 being fairly obvious.
Now assume that the result is true for n=1,2,…,k. There are 2 cases:
Case 1: There are no blue points on the line x+y=k−1. Then just shift one to the left and apply the inductive hypothesis; this does not affect the ordering of the blue points.
Case 2: There is some blue point on the line x+y=k−1. Then this blue point separates the red and blue points into two halves, and apply the inductive hypothesis on each half.
Therefore, we have finished the induction. As a result, multiplying all of the number of blue points of each x coordinate will yield the same result with the y coordinates, so A=B, as desired.
huashiliao2020 wrote:
Let ak,bk be the number of blue points with x (resp. y) coordinates k; we'll prove that A=∏ak=∏bk=B by showing the sequence b is a permutation of the sequence a using strong induction, with base case n=1 trivial, so assume now the inductive hypotheses, and for convenience let ⟺ denote permutation of each other. If all points on the line x+y=n are blue, we're done since ∀1≤k≤n−1, ak⟺bk due to inductive hypothesis and just adding 1 for every point (since there's an extra blue point now on every horizontal/vertical line). However, if some point (m,n-m) is red, then am=0=bm, meaning A=0=B. We conclude.
Remark. Looking at the extremal line x+y=n is well motivated by induction.
Just want to point out that the induction is not complete because your induction’s hypothesis is that the the sequence a is a permutation of b. However, in the end of your solution, you only show that A=B=0. Fortunately, this is not very hard to fix.
Let cx and dy denote the number of blue points of column x and row y, respectively. Let (x,y) be red with x+y=n−k, with k>1.
We prove by strong induction that A=∏cx=∏dy=B. The base case with x+y=2 is trivial. Assume now that A=B for all x+y=2,3,…,n−2. Adding in the (new) blue line x+y=n−1 turns the product
c0c1⋯cn−2=d0d1⋯dn−2⟹(1)(c0+1)(c1+1)⋯(cn−2+1)(1)=(1)(d0+1)(d1+1)⋯(dn−2+1)(1),so that A′=B′. ◼
If we have a red point on line x+y=n−1 instead of an all blue point line, we have by strong induction that x+y=n as an all blue line also finishes this problem.
Claim: The # of blue for each y coordinate is a permutation of the # of blue for each x coordinate.
Base Case: If n=1, there is only one point. If it is red, A=B=0. If it is blue, A=B=1.
Induction: Take the tallest rectangle and draw an isosceles right triangle on top and on the right with the same length/width. If a rectangle contains the entire column, then A=B=0 If there are no rectangles, then A=B=n!. Let x be the length of the tallest rectangle and y be the height. Call the triangle with side length x "X" and the one with side length y "Y". Because all pervious values of n work, triangles X and Y satisfy the claim, so the triangle made by combining triangle X, triangle Y, and the tallest rectangle also works because the triangles have no overlap in the x or y coordinate. So n would also work because changing from the one with side length x+y to the entire triangle increases the number of blue in each row and column increases by n−x−y, so they would still be permutations of each other, and n also works.
Define ac as the number of blue points with x-coordinate c, and bc as the number of blue points with y-coordinate c. We claim the stronger statement that {ai} and {bi} are permutations of each other through induction on n, with trivial base case n=2.
Assuming that n=k satisfies the condition, we claim that adding the k+1 points on the line x+y=k to prove the case n=k+1, as
(a0+1)⋅…⋅(ak+1)⋅1=(b0+1)⋅…⋅(bk+1)⋅1.
Now we just need to consider the cases where the added line contains a red point (m,k−m), which can be handled by noting a configuration where we can add the desired red point such that no other red points are forced. This just changes the pair (am,bk−m)=(1,1) to (0,0), as desired. ◼
We will do induction on n with our base cases of n=1 and n=2 being true. We can do induction by adding in the set of points on the line x+y=n from which our total set of points becomes x+y<n+1.
If xk is the number of blue points on row k and xy is the number of blue points on column k, the problem is equivalent to showing that the set {x1,x2,…,xn}={y1,y2,…,yn}.
If after adding in the points on x+y=n we don't add any extra red points on the new line, we have {x1+1,x2+1,…,xn+1,1}={y1+1,y2+1,…,yn+1,1}. If we do add an extra red point on the line x+y=n then we don't have to add any other new points since it is equivalent to just adding the one red point in a different configuration(where no new red points would be added). Clearly the sets xi and yi are equal since we are just changing one of the variables in each set from 1 to 0, and we are done by the induction hypothesis.
Let ri,ci be the number of blue points in each row and column. It satisfies to prove multisets {ri}={ci} as A=∏ri=∏ci=B. We prove this by induction. The base case of n=1 is trivial.
Assume for n=k and consider n=k+1. Observe that for T′⊂T bounded by x+y<k with row/column blue values r′i,c′i, by induction {r′i}={c′i}. Now for each point x+y=k, if (x−1,y) or (x,y−1) were blue, then (x,y) must be blue. So the corresponding r′i,c′i are incremented by 1 to get ri,ci. Otherwise, if both (or only 1 for edges) are red, the new point can be red or blue. In the former, the corresponding ri=ci=0. In the latter, ri=ci=1. Either way, the inductive step is complete as the multisets {ri}={ci} (since non-zero terms increment and zero terms have preserved equality).
The only thing I can do is induct :skull:
First of all, we define Ak and Bk to the the number of x sets and y sets respectively, when the restraint is x+y<k.
Next, define X(i) and Y(i) to be the number of points with x and y coordinate i respectively that are blue, plus one.
This means Ak=∏k−1i=0X(i) and Bk=∏k−1i=0Y(i).
Now we claim that Ak=Bk all the time, over all k.
Base Case (k=1)
This is simple as the only point that we care about is (0,0) and it is either red or blue, making Ak=Bk=0 and Ak=Bk=1 respectively.
Inductive Step
Actually, we will use strong induction so assume the inductive hypothesis holds for n≤k.
Now when n=k+1, we have the set of points with x+y≤k,x,y∈Z+
We define the "biggest" red point (called Br) as the red point with the largest sum of coordinates. If there are multiple "biggest" red points, picking any will suffice. Let Q(p) be the function that sums a point's coordinates.
We are presented with two cases.
Case 1: Q(Br)<k
Then ignore the points with a coordinate sum higher than Br. this is just a case from the inductive hypothesis. Now the points with coordinate sum higher than Br contribute k−Q(Br) to each X(i) and Y(i) term, so equality is preserved. This case is complete
Case 2 Q(Br)=k.
Then draw the rectangle with opposite points (0,0) and Br with sides perpendicular to the axes.
Color the rectangle red because we can by the problem statement.
Now, we are left with two smaller isosceles right triangles. These right triangles are just the inductive hypothesis that underwent translation along the axes. Furthermore, since the functions counting A and B are multiplicative, we can just multiply together the two equations representing equality for the two small isosceles right triangles we just made. Therefore, this case is complete.
Since we addressed all the cases, we are done.
We instead interpret this is on a n by n grid, where we are to choose blue squares from n columns and n rows, and no red or blue point square can be beyond the main diagonal. Clearly all red squares in a column are consecutive starting at the lower boundary. Now let ai be the number of red squares in the ith column, clearly ai is nonincreasing by the condition, otherwise we would have some blue square that lies to the left of a red square, likewise, we see that all nonincreasing sequences indeed correspond to some working coloring. Now induct on ∑ai. The base case of ∑ai=1 is obvious by symmetry, its just a1=1. Now we show we can always remove a square from a nondecreasing a to get another working a, of course this is just doable by decrementing aj where j is the last index associated with a positive number of squares. Since we can achieve every working coloring via this method, it suffices to show that the factor by which the number of distinct-row sets of n blue squares changes by applying this operation is equal to the factor of change for distinct-column sets of n blue squares, and we can then rely on the inductive hypothesis to finish. Let ay originally be x, where y is the column we removed the square from. Then the change in distinct column sets is just n−y−xn−y−x−1, since we just went from n−y−x−1 options to n−y−x options for that column, and no other columns changed. An identical argument on row x finishes.
We show this by induction. The base case, n=1, is trivial by casework. Now, assume that our proposition holds for n=k where k is some positive integer. Then consider our grid when n=k+1. Clearly, we are essentially adding another line below the grid for n=k. On this row, let the number of blue points be m. Then clearly the first k+1−m points are red. By our inductive hypothesis, the product of the number of blue points in the first k rows divided by the product of the number of blue points in the first k columns is 1. By adding the new row, the product of the number of blue points in the rows is increased by a factor of m. Meanwhile, in each of the last m columns, it is clear that the number of blue points in column i (where 1≤i≤m) is increased by i+1i. Thus, AB=1⋅(m+1)⋅12⋅23⋅⋯⋅mm+1=1by telescoping, so our induction is complete. QED
Let xi and yi be the number of blue points in the rows and columns. We will prove a stronger claim that the multisets {xi} and {yi} are equal, which obviously proves the desired statement. We prove this with induction on n.
The base case of n=1 is vacuous; suppose the inductive hypothesis holds for n=k. Consider each of the points (x,y) on the line x+y=k. If (x−1,y) or (x,y−1) were blue, then (x,y) must be blue. Hence, the corresponding xi,yi are increased by 1. If both (x−1,y) or (x,y−1) were red instead, then (x,y) could either be red or blue, and we get xi=yi=0 or xi=yi=1 for the corresponding xi,yi. Either way, we see that the resulting multisets {xi} and {yi} are equal, completing the induction. ◼
Gonna sketch this one.
We call a red point a boundary point if there exists no other red point with both coordinates at least that of this point. Then changing the color of a boundary point leaves AB invariant.
Further, any configuration having a red point has a boundary point, due to finiteness. Thus we keep removing boundary points until we reach the configuration with all points blue, for which A=B is obvious by symmetry.