算(n+2)*((n+1)/2)=5050

问题描述:

算(n+2)*((n+1)/2)=5050

5050=(1+100)*100/2=(n+2)*(n+1)/2所以n=99