∑k=0n−1(x+2k)(x+2k+2)=38n−(1)
Expand one general term first:
(x+2k)(x+2k+2)=A(A+2),A=x+2k
=A2+2A=(x+2k)2+2(x+2k)
=x2+(4k+2)x+4k2+4k−(2)
Add the coefficients separately.
Coefficient of x2: ∑k=0n−11=n
Coefficient of x: ∑k=0n−1(4k+2)=4∑k=0n−1k+2n=42(n−1)n+2n=2n2
Constant term: ∑k=0n−1(4k2+4k)=4∑k2+4∑k =34n(n2−1)−(3)
Substituting these three sums into (1) we get
nx2+2n2x+34n(n2−1)=38n
⟹3x2+6nx+4(n2−3)=0−(4)
The quadratic (4) has its two roots as consecutive even integers.let them be m and m+2.
Sum of roots =−36n=−2n
m+(m+2)=2m+2=−2n⟹m=−n−1−(5)
Product of roots =34(n2−3)
(m)(m+2)=(−n−1)(−n+1)=n2−1−(6):
n2−1=34(n2−3)
n2−9=0
n2=9⟹n=3(since n is positive)
The positive integer n that satisfies the given condition is 3.