|
|
|
|
|Store|
|
|
|
|
CTK Exchange
sfwc
Member since Jun-19-03
|
Nov-15-05, 11:14 AM (EST) |
|
"counting triangles"
|
At https://www.cut-the-knot.org/Curriculum/Algebra/TriangleChain.shtml you ask "can you construct a chain of adjacent triangles of length given in (1)?". I am not sure whether this is intended as a genuine problem, since it is not too hard. Nevertheless, here is a simple solution: Claim: There exists such a chain, beginning in a corner, in a triangle of size n for any natural number n. Proof: Induction on n. Base case: For n = 1, the triangle itself is a chain of length 1 = 1^2 - 1 + 1. Induction step: Pick a side adjacent to the given corner. The triangles with at least one vertex on that side form a chain of length 2n - 1. Take all the elements of that chain except the final one. The triangles not in that chain form a triangle of side n-1, of which you are now adjacent to the corner. By the induction hypothesis, then, we may extend the chain by a further (n-1)^2 - (n-1) + 1 triangles giving a total length of n^2 - 2n + 1 - n + 1 + 1 + 2n - 2 = n^2 - n + 1. Of course, this proof does not give an explicit construction, but it'suggests two reasonably pleasant ones: a zig-zag and a spiral. Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
alexb
Charter Member
1711 posts |
Nov-15-05, 11:28 AM (EST) |
|
1. "RE: counting triangles"
In response to message #0
|
Thank you. I did not think of a proof but the solution I had in mind is what would appear as a zig-zag on a level and spiraling between the levels. I could not separate the two. Can you? Thinking about a proof, 2(k-1) triangles on a level of side k form a parallelogram such that, when chained, the exit and the entry points of the chain are in the opposite corners. This allows stacking the levels on top of each other. The total number of triangles in the chain levels is then 2(n-1) + 2(n-2) + ... + 2 = n(n-1), to which one should add the top triangle - a level of its own. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
sfwc
Member since Jun-19-03
|
Nov-16-05, 07:05 AM (EST) |
|
2. "RE: counting triangles"
In response to message #1
|
>Thank you. I did not think of a proof but the solution I had >in mind is what would appear as a zig-zag on a level and >spiraling between the levels. This is what I referred to as the spiral (though I must admit it is locally zig-zaggy).>Thinking about a proof, 2(k-1) triangles on a level of side >k form a parallelogram such that, when chained, the exit and >the entry points of the chain are in the opposite corners. >This allows stacking the levels on top of each other. And this is what I referred to as the zig-zag (though it is locally even more ziggy and zaggy than it is globally) Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
|
|
Alan
guest
|
Dec-12-05, 07:53 PM (EST) |
|
4. "RE: counting triangles"
In response to message #1
|
I don't understand, how does this prove that a chain is possible? To me it looks like its disproving it explicitly by saying that the maximum length is less than n^2. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
Alan
guest
|
Dec-12-05, 08:54 PM (EST) |
|
6. "RE: counting triangles"
In response to message #5
|
Doesn't this leave at least one triangle uncounted? For a simpler example, with 4 small triangles, I start with the top vertex triangle, then count the middle triangle, then proceed to one of the other vertices...how do I get to the other vertex now? I think I must be misunderstanding the problem. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
alexb
Charter Member
1711 posts |
Dec-12-05, 09:00 PM (EST) |
|
7. "RE: counting triangles"
In response to message #6
|
>Doesn't this leave at least one triangle uncounted? It leaves n-1 uncounted triangles. The maximum chain's length is claimed to be n2 - n + 1 and not n2. >For a >simpler example, with 4 small triangles, I start with the >top vertex triangle, then count the middle triangle, then >proceed to one of the other vertices...how do I get to the >other vertex now? I think I must be misunderstanding the >problem. The problem is indeed simple. If you look at the Hint in the applet. The triangles split into two sets colored differently. One has n(n-1)/2 triangles, the other n(n+1)/2. In a chain, two adjacent triangles got to be of different colors. So the best one can do is twice the smallest number n(n-1)/2 plus 1.
|
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
|Front page|
|Contents|
Copyright © 1996-2018 Alexander Bogomolny
|
|