b^2+(b+1)^2=841
b^2+b^2+2b+1=841
b^2*2+2b=840
b^2+b=840/2=420
b*(b+1)=420
b*(b+1)=20*21
prin urmare b este 20