The House Number (Part 1 & Part 2)

 THE HOUSE NUMBER (Part 1) :-

A man said the house of his friend was in a long street, numbered on his
side one, two, three, and so on, and that all the numbers on one side of him
added up exactly the same as all the numbers on the other side of him. He
said he knew there were more than fifty houses on that side of the street, but
not so many as five hundred.
Can you discover the number of that house?

Orientation:-

1) Based on the information You can form the below equation

  m(m+1)/2=n(n+1)/2-((m(m+1)/2))+m+1)

Simplify the equation to find the answer pattern

2) You can write a C/C++ program to find the final answer

The House Number (Part2):-


A long street in Brussels has all the odd numbers of the houses on one side
and all the even numbers on the other-a method of street numbering quite
common in our own country.

(1) If a man lives in an odd-numbered house and all the numbers on one
side of him, added together, equal the numbers on the other side, how many
houses are there, and what is the number of his house?

(2) If a man lives on the even side and all the numbers on one side of him
equal those on the other side, how many houses are there, and what is his
number?
We assume that there are more than fifty houses on each side of the street
and fewer than five hundred

Orientation:-

1) For the first question it is important to note the nth term is 2n-1 and the sum of the odd numbered houses is (n*n) for n houses.

2) For the second question if you know the answer for "The House number Part1" it is easier to solve it.

3)You can write a C/C++ program to find the final answer for first question.

Comments

Popular posts from this blog

The Newspaper and the Cryptophone

A Warm Farewell

Answers for Puzzles 8 to 11