2 Floors are harder than 9 Floors?

I live in an apartment building which has a prime number of floors that can't be greater than 25 because of height restrictions. Everyday, as part of my effort to lose weight, I walk up the stairs from the ground floor to the roof. Each floor burns more and more calories following the sequence of odd numbers ( \big( i.e. 1 st 1^\text{st} floor burns 1 calorie, 2 nd 2^\text{nd} floor burns 3 calories, and so on ) . \big). The combined calorie burning in the top 2 floors is greater than the total calorie burning in the first 9 floors.

How many floors does the building have?


The answer is 23.

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.

3 solutions

Jimin Khim Staff
Mar 4, 2018

The sum of odd numbers (starting from 1) up to the n th n^\text{th} term is ( 1 + ( 2 n 1 ) ) × n 2 = 2 n 2 2 = n 2 . \frac{\big(1+(2n-1)\big)\times n}{2} = \frac{2n^2}{2}=n^2. Now, let k k be the number of floors that the building has. Then we have 9 2 < k 2 ( k 2 ) 2 81 < 4 k 4 85 < 4 k 21.25 < k 25 ( because of height restrictions ) k = 22 , 23 , 24 , 25. ( because it’s prime ) \begin{aligned} 9^2 < &k^2-(k-2)^2\\ 81 < &4k-4\\ 85 < &4k\\ 21.25 < &k \le 25 && (\text{because of height restrictions})\\ \Rightarrow &k=22, {\color{#D61F06}{23}}, 24, 25. && (\text{because it's prime})\\ \end{aligned} Therefore, the building has 23 floors. _\square

Where is 21.25 21.25 come from?

Gia Hoàng Phạm - 2 years, 8 months ago
Geoff Pilling
Mar 5, 2018

Knowing that the answer was unique, we only need to maximize the number of floors. The greatest prime number less than 25 is 23 \boxed{23}

Niven Achenjang
Mar 5, 2018

Let p p be the number of floors. All we are given is that p 25 p\le25 and "The combined calorie burning in the top 2 floors is greater than the total calorie burning in the first 9 floors", so we know this must be enough information to solve the problem. When you think about it, you'll realize that the "the total calorie burning in the first 9 floors" is constant while "The combined calorie burning in the top 2 floors" increases as p p increases. This means that if this statements holds for p p , then must also hold for any prime greater than p p ! (<--- an exclamation point, not a factorial). Thus, assuming this question has a well-defined answer, it must be the largest prime p 25 p\le25 and so the answer is 23.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...