1+3+5+...+(x-2)+x=400
=>\(\dfrac{\left(x-1\right):2+1\cdot\left(1+x\right)}{2}\)=400
=>(\(\dfrac{x}{2}\)-\(\dfrac{1}{2}\)+1)\(\cdot\)(1+x)=800
=>(\(\dfrac{x}{2}\)+\(\dfrac{1}{2}\))\(\cdot\)(1+x)=800
=>(x+1):2\(\cdot\)(1+x)=800
=>(x+1)2=800x2=1600=402
=>x=40-1=39
Vậy x=39.