We can apply difference of squares to the numerator: n2+2n−1=(n+1)2−2=(n+1+2)(n+1−2).We can also factor the denominator: n2+n+2−2=(n+2)+(n2−2)=(n+2)+(n+2)(n−2)=(n+2)(n−2+1).Hence, n2+n+2−2n2+2n−1=(n+2)(n−2+1)(n+1+2)(n+1−2)=n+2n+1+2.Therefore, n=1∏2004n2+n+2−2n2+2n−1=n=1∏2004n+2n+1+2=1+22+2⋅2+23+2⋅3+24+2⋯2004+22005+2=1+22005+2=(1+2)(2−1)(2005+2)(2−1)=120042−2003=20042−2003.