CTK Exchange
Front Page
Movie shortcuts
Personal info
Awards
Reciprocal links
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content |Store| Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "counting triangles"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange This and that Topic #652
Reading Topic #652
sfwc
Member since Jun-19-03
Nov-15-05, 11:14 AM (EST)
Click to EMail sfwc Click to send private message to sfwc Click to view user profileClick to add this user to your buddy list  
"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

  Subject     Author     Message Date     ID  
counting triangles sfwc Nov-15-05 TOP
  RE: counting triangles alexb Nov-15-05 1
     RE: counting triangles sfwc Nov-16-05 2
         RE: counting triangles alexb Nov-16-05 3
     RE: counting triangles Alan Dec-12-05 4
         RE: counting triangles alexb Dec-12-05 5
             RE: counting triangles Alan Dec-12-05 6
                 RE: counting triangles alexb Dec-12-05 7
                     RE: counting triangles Alan Dec-12-05 8

Conferences | Forums | Topics | Previous Topic | Next Topic
alexb
Charter Member
1711 posts
Nov-15-05, 11:28 AM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
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)
Click to EMail sfwc Click to send private message to sfwc Click to view user profileClick to add this user to your buddy list  
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
alexb
Charter Member
1711 posts
Nov-16-05, 08:09 AM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
3. "RE: counting triangles"
In response to message #2
 
   I see now also the spiral. Would have missed it if it were not for your remark. Thank you.


  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
alexb
Charter Member
1711 posts
Dec-12-05, 07:59 PM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
5. "RE: counting triangles"
In response to message #4
 
   The proof of existence is quite constructive: start in a vertex triangle and proceed along one side till you get to the next corner. Going to that corner you reach an impass, so do not, but rather swerve to the adjacent side and proceed along this side in the same manner. The next side, then the internal edge of the triangles traversed on the first leg of the journey, and so on. This is how you get the spiral suggested by sfwc.


  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)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
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
Alan
guest
Dec-12-05, 09:15 PM (EST)
 
8. "RE: counting triangles"
In response to message #7
 
   Ahh... Indeed I was misunderstanding the problem. I thought you were claiming a proof that you could count all n^2 triangles. All cleared up, thanks.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

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

Search:
Keywords:

Google
Web CTK