document.write( "Question 1143829: The sum of p consecutive integer is 4. What is p? \n" ); document.write( "
Algebra.Com's Answer #764749 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Suppose p is odd. Then the average of the integers is the middle number, which is some integer n. Then the sum of the p consecutive integers is p times n, where p is an odd integer and n is any other integer.

\n" ); document.write( "Since the given sum 4 can't be written as the product of two integers of which at least one is odd, we now the number of integers p can't be odd.

\n" ); document.write( "So p must be even. Then the average of the integers is halfway between two integers; call that average n+1/2, where n is n integer. Then the sum of the integers is the product of the even number p and the number (n+1/2).

\n" ); document.write( "The only way to write the given sum 4 in the form p(n+1/2) where p and n are both integers is 8(1/2).

\n" ); document.write( "That means the integers are the 8 integers with an average of 1/2.

\n" ); document.write( "So the answer to the question is p=8.

\n" ); document.write( "The 8 integers are the 4 integers either side of 1/2: 0, -1, -2, and -3; and 1, 2, 3, and 4.

\n" ); document.write( "(-3)+(-2)+(-1)+0+1+2+3+4 = 4
\n" ); document.write( "
\n" );