`a, 1+2+..+n=45`
`<=> n(n+1)=90`
`<=> n=9`.
Vậy `n=9.`
`b, 1+2+...+x=190`
`<=> x(x+1)/2=190`
`<=> x(x+1)=380`
`<=> x=19`.
Vậy `x=19.`
1 + 2 + 3 + ... + x = 45
x(x + 1) : 2 = 45
x(x + 1) = 45 . 2
x(x + 1) = 90
x² + x = 90
x² + x - 90 = 0
x² - 9x + 10x - 90 = 0
(x² - 9x) + (10x - 90) = 0
x(x - 9) + 10(x - 9) = 0
(x - 9)(x + 10) = 0
x - 9 = 0 hoặc x + 10 = 0
*) x - 9 = 0
x = 9 (nhận)
*) x + 10 = 0
x = -10 (loại)
Vậy x = 9