# Geometry buffs: Pls explain this "How many triangles" puzzle

**URL:** <https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860>\
**Category:** Factual Questions\
**Created:** [December 10, 2021, 10:09pm UTC](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860 "2021-12-10T22:09:48Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [December 13, 2021, 9:05pm UTC](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860/42 "2021-12-13T21:05:42Z")

</div>

The first one has 24 squares as mentioned by @Chronos. Here is how I figured that out (I didn’t count them). Represent a line segment as 2+e, two vertices and on edge. Then a square is gotten by multiplying two of them, giving (2+e)^2=4+4e+4e^2, understood as consisting of 4 points, 4 edges and one square. Similarly, a cube is represented by  
(2+e)^3=8+12e+6e^2+e^3  
a tesseract by  
(2+e)^4=16+32e+24e^2+8e^3+e^4  
and a 5-cube by  
(2+e)^5=32 + 80e +80e^2+40e^3+10e^4+e^5  
which gives the 80 squares as described by @Chronos. But it also tells you that it counts 40 cubes and 10 tesseracts.

Incidentally, in all cases, the alternating sum of the coefficients is exactly 1. This is essentially equivalent to Euler’s formula v-e+f=2 in two dimensions.

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [December 13, 2021, 9:12pm UTC](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860/43 "2021-12-13T21:12:44Z")

</div>

> [@Hari\_Seldon](#):
>
> . . . Here is how I figured that out (I didn’t count them). . . .

You can write all those coefficients in a layout similar to Pascal’s Triangle. Then write an actual Pascal’s Triangle next to that, and compare them. There is a pattern there.

---

<div class="post-metadata">

**Author:** ![hibernicus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hibernicus/32/2802_2.png) [@hibernicus](https://boards.straightdope.com/u/hibernicus)\
**Post date:** [December 13, 2021, 9:33pm UTC](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860/44 "2021-12-13T21:33:12Z")

</div>

> [@Hari\_Seldon](#):
>
> Incidentally, in all cases, the alternating sum of the coefficients is exactly 1.

What does “alternating sum” mean?

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [December 13, 2021, 11:01pm UTC](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860/45 "2021-12-13T23:01:10Z")

</div>

Adding up - but reversing sign for each element. So for the tesseract case (as given above 16+32e+24e2+8e3+e4), the coefficients are 16, 32, 24, 8 and 1, and the alternating sum is 16-32+24-8+1 = 1

[Previous page](https://boards.straightdope.com/t/geometry-buffs-pls-explain-this-how-many-triangles-puzzle/955860.md?page=2)
