Extended Triangle-ception

Logic Level 4

The diagram shows the tiling of the first 4 2 4^2 smallest congruent equilateral triangles.

The extension of this triangle has a total of n 2 n^2 smallest congruent equilateral triangles.

Find the positive value of n n if the total number of triangles (of all sizes) for this diagram is 988.

Inspiration .


The answer is 15.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

The general formula for the total number of triangles as a function of n n is

f ( n ) = n ( n + 2 ) ( 2 n + 1 ) 8 , f(n) = \lfloor \dfrac{n(n + 2)(2n + 1)}{8} \rfloor, as found here .

The proof of this formula is quite involved. A discussion on this general problem, with a variety of approaches, can be found here .

To solve for n n in this problem, I first made an initial estimate using the approximation

2 n 3 = 8 988 n = 15.81 2n^{3} = 8*988 \Longrightarrow n = 15.81 to 2 decimal places.

I knew this estimate would be on the high side, so I tried f ( 15 ) f(15) to find that

f ( 15 ) = 7905 8 = 988.125 = 988 , f(15) = \lfloor \dfrac{7905}{8} \rfloor = \lfloor 988.125 \rfloor = 988, and thus concluded that n = 15 . n = \boxed{15}.

Becomes easy when you know the formula!

Swapnil Das - 6 years ago

I also knew it!!

Akshat Sharda - 5 years, 9 months ago
Abdelhamid Saadi
Jul 6, 2015

I propose a programmation solution in python 3.4:

We have n 2 < = 988 n^2 <= 988 then n < = 31 n <= 31 .

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def nbtriangles(n):
    cnt = 0
    for k in range(1, n + 1):
        for i in range(1, n + 2 -k):
            cnt += i
        for i in range(1, n + 2 -2*k):
            cnt += i
    return cnt

for n in range(1,32):
    if nbtriangles(n) == 988:
        print(n)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...