Given, the houses in a row numbered consecutively from 1 to 49.
Now, sum of numbers preceeding the number X
= X(X−1)2
And, sum of numbers following the number X
= 49(50)2−X(X−1)2−X
= 2450−X2+X−2X2
= 2450−X2−X2
According to the given condition,
Sum of no's precceding X = Sum of no's following X
X(X−1)2=2450−X2−X2
X2−X=2450−X2−X
2X2=2450
X2=1225
X=35
Hence, at X=35, sum of no. of houses preceeding the house no. X is equal to sum of the no, of houses following X.