Math professor and number of rooms

  • Context: Undergrad 
  • Thread starter Thread starter quark
  • Start date Start date
  • Tags Tags
    Professor
Click For Summary
SUMMARY

The discussion centers on a mathematical problem involving a hotel with 288 rooms on a floor, where a math professor discovers that the sum of room numbers to his left equals the sum of room numbers to his right. The professor occupies room 204, with the sum of the first 203 room numbers calculated as 20706. The solution involves using the formula for the sum of an arithmetic series, specifically n*(n+1)/2, to derive the necessary room configurations. The conversation encourages the use of programming tools like VB and Excel for solving similar problems efficiently.

PREREQUISITES
  • Understanding of arithmetic series and summation formulas
  • Familiarity with programming concepts in Visual Basic (VB)
  • Basic knowledge of Excel functions for calculations
  • Experience with problem-solving techniques in mathematics
NEXT STEPS
  • Explore the use of the arithmetic series formula in different contexts
  • Learn how to implement mathematical algorithms in Visual Basic (VB)
  • Investigate advanced Excel functions for mathematical problem-solving
  • Research methods for simplifying mathematical problems involving sequences and series
USEFUL FOR

Mathematicians, educators, students preparing for math competitions, and anyone interested in problem-solving techniques related to arithmetic series and programming applications.

quark
Messages
231
Reaction score
1
A math professor was staying in a hotel before attending a math conference. When he came out of his room, to go to the conference, he found out that the total of room numbers to his left was equal to the total of room numbers to his right. The total numbers of rooms per floor were about 300 and just assume that they are in line. The room numbers were given without skipping any number(even 13 :smile: )

How many rooms are there in the hotel floor and in which room did the professor stay?

It is damn easy solving with any of the computer programs. I did it in VB and excel(Also without these programs. By saying this I am not acting smart but just encouraging you guys). But there is a clue for getting the numbers by which you can skip all unnecessary numbers. Go get it.
 
Mathematics news on Phys.org
Answer for the first floor (whited out)


There are 288 rooms on the floor. The professor is in room 204.
The sum of numbers of the first 203 rooms is
(203 * 204) / 2 = 20706.
The sum of numbers of the last 84 rooms is
(288 * 289) / 2 - (204 * 205) / 2 = 20706.

I looked for numbers n for which sqrt ((n * n + n) / 2) is an integer.


I don't have a solution for the second floor and higher.
 
Jimmy, you got it. The redundant data like, rooms in same floor and all in a line, actually takes care of all silly quesions. Try to further simplify the thing(I believe you can do it and you can cross check it with the whited out logic).

Further simplification results in n*(n+1)/2. So, either n and (n+1)/2 or n/2 and (n+1) should be perfect squares. If you start squaring numbers and check the above possibilities, you need not go morethan 17 trials.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
Replies
2
Views
2K
  • · Replies 273 ·
10
Replies
273
Views
31K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
14K
Replies
28
Views
3K
  • · Replies 84 ·
3
Replies
84
Views
40K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K