Houses

Logic Level 3

The houses of a row are numbered consecutively from 1 to 49. Find the value of x x such that the sum of the numbers of houses preceding the house numbered x x is equal to the sum of the numbers of the houses following it.


The answer is 35.

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.

1 solution

Roger Erisman
May 11, 2016

let n = number we're looking for.

1 to n - 1 is the sequence of numbers before n

n+1 to 49 is the sequence of numbers after n

Using the summation formula for an arithmetic series

SUM = number / 2 * ( first + last)

Sum ( 1 to n -1 ) = (n-1)/2 * ( 1 + n -1) = (n-1)*(n) / 2 = (n^2 - n) / 2

Sum (n + 1 to 49 ) = (49 - n) / 2 * (n + 1 + 49) = (49 - n) * (50 + n) / 2

These two sums must be equal so since denominators are equal the numerators are equal:

Multiplying second sum to remove ( )

n^2 - n = 2450 - n -n^2

2*n^2 = 2450

n^2 = 1225

n = 35

very good solution...+1

Ayush G Rai - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...