Skip to main content

putting 12 matchsticks end to end, exactly 3 different triangles can be made, what is the formula needed to calculate the number of triangles can...

There are three distinct triangles using 12 matchsticks: 3-4-5,4-4-4, and 5-5-2.

Note that for a given number of matchsticks M, if the sides of the triangle are labeled a,b, and c (without loss of generality let c be the longest side) then a+b+c=M, a+b>c and c<M/2.


We can generate the number of triangles for a given M:


For 24 matchsticks the possible triangles are 11-11-2,11-10-3,11-9-4,11-8-5,11-7-6,10-10-4,10-9-5,10-8-6,10-7-7,9-9-6,9-8-7,8-8-8 or 12 possible triangles.


There are 19 possible triangles for M=30.


For M>=3 then (M,number of triangles) is (3,1),(4,0),(5,1),(6,1),(7,2),(8,1),(9,3),(10,2),(11,4),(12,3),(13,5),(14,4),(15,7),(16,5),(17,8),(18,7)...


There is a formula for this:


If M is even then the number of triangles is the integer closest to M^2/48.


If M is odd then the number of triangles is the integer closest to (M+3)^2/48


For example, if M=12 we have 12^2/48=3.


If M=14 we have 14^2/48=4.083333 so there are 4 triangles.


If M=9 we have (9+3)^2/48=3.


If M=11 we have (11+3)^2/48=4.083333 so there are 4 triangles.


Please see the reference link for a proof.

Comments

Popular posts from this blog

What are some external and internal conflicts that Montag has in Fahrenheit 451?

 Montag, the protagonist of Fahrenheit 451, faces both external and internal conflicts throughout the novel. Some examples of these conflicts are: External Conflicts: Conflict with the society: Montag lives in a society that prohibits books and critical thinking. He faces opposition from the government and the people who enforce this law. Montag struggles to come to terms with the fact that his society is based on censorship and control. Conflict with his wife: Montag's wife, Mildred, is completely absorbed in the shallow and meaningless entertainment provided by the government. Montag's growing dissatisfaction with his marriage adds to his external conflict. Conflict with the fire captain: Montag's superior, Captain Beatty, is the personification of the oppressive regime that Montag is fighting against. Montag's struggle against Beatty represents his external conflict with the government. Internal Conflicts: Conflict with his own beliefs: Montag, at the beginning of th...

In A People's History of the United States, why does Howard Zinn feel that Wilson made a flimsy argument for entering World War I?

"War is the health of the state," the radical writer Randolph Bourne said, in the midst of the First World War. Indeed, as the nations of Europe went to war in 1914, the governments flourished, patriotism bloomed, class struggle was stilled, and young men died in frightful numbers on the battlefields-often for a hundred yards of land, a line of trenches. -- Chapter 14, Page 350, A People's History of the United States Howard Zinn outlines his arguments for why World War I was fought in the opening paragraph of Chapter 14 (referenced above). The nationalism that was created by the Great War benefited the elite political and financial leadership of the various countries involved. Socialism, which was gaining momentum in Europe, as was class struggle, took a backseat to mobilizing for war. Zinn believes that World War I was fought for the gain of the industrial capitalists of Europe in a competition for capital and resources. He states that humanity itself was punished by t...

Where did Atticus take the light and extension cord in To Kill a Mockingbird?

Atticus brings the light to the courthouse jail so that he can protect Tom Robinson.  Atticus learns that Tom Robinson, his client, is in danger.  A group of white men want to prevent the trial and lynch Robinson. He is warned by a small group of men that appear at his house.  He refuses to back down.  Atticus knows that the Cunninghams will target his client, so he plans to sit up all night with... Atticus brings the light to the courthouse jail so that he can protect Tom Robinson.  Atticus learns that Tom Robinson, his client, is in danger.  A group of white men want to prevent the trial and lynch Robinson. He is warned by a small group of men that appear at his house.  He refuses to back down.  Atticus knows that the Cunninghams will target his client, so he plans to sit up all night with Jim if that’s what it takes to protect him.  Atticus tells the men that he will make sure his client gets his fair shake at the law.  “Link, that boy might go to the chair, but he’s not going till ...