1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999),并求当x=1时,该代数式的值.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 07:47:14
1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999),并求当x=1时,该代数式的值.
xQJ@E8I'n _i0NBJ@ Aܸ"JVHWLp+9xOpfd@Dk`G?]8GPYz(7%zYnOkY|>\yx"8ޅrB:шR ,-AꄲUkMЪ]GuVWv4|ْ@*e_%+m<x ܓ<oQ;e[7 (a %s.O0W8`68G29\bBtP#ҳwaB$S.#HuvQ5

1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999),并求当x=1时,该代数式的值.
1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999),并求当x=1时,该代数式的值.

1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999),并求当x=1时,该代数式的值.
1/x(x+1)=1/x-1/(x+1)
1/(x+1)(x+2)=1/(x+1)-1/(x+2)
1/(x+2)(x+3)-1/(x+2)-1/(x+3)
……
1/(x+1998)(x+1999)=1/(x+1998)-1/(x+1999)
所以,
1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999)
=1/x-1/(x+1999)
当x=1时,
1/x(x+1)+1/(x+1)(x+2)+1/(x+2)(x+3)+……+1/(x+1998)(x+1999)
=1/x-1/(x+1999)
=1-1/2000
=1999/2000

#include
#define x 1
void main()
{
int n;
float sum;
for(n=1,sum=0;n<=1999;n++)
{
sum=sum+1.0/((x+n-1)*(x+n));
}
printf("%f",sum);
}