the sum of consecutive integer is - 26 what are the integer
Answers
Answer:
question is wrong. Please check the question
Answer:
Using int() function to separate integer part of a number the number X is an integer one if :
X - int (X) = 0 …………… (1)
(X+2) - int (X+2) = 0………. (2)
The base equations to be solved for X if the X is an even or odd having a consecutive pair of X+2 having a sum of S :
X + ( X+2 ) = S
The solution is:
X = ( S-2 ) / 2 = S/2 -1
X+2 = S/2 + 1
The (1) and (2) always fulfilled if S is an even number. Otherwise the X and +2 might not be an integer.
If S/2 is an odd , the X and X+2 will be even one. Otherwise the X and X +2 has an odd value.
By a given S=26
X = S/2 - 1 = 12
X + 2 = S/2 + 1 = 14
So by this given S= 26 value the solution X can only be an even value. (Neither of two consecutive odd numbers might have a sum of 26.)