Let a,b≥0 and 2ab+1+2ba+1=(a+b)(a+b+1).
Let us denote x=a and y=b, so a=x2, b=y2, a+1=x2+1, b+1=y2+1.
Substitute into the equation:
2x2y2+1+2y2x2+1=(x+y)(x2+y2+1)
Divide both sides by x+y (assuming x+y>0; if x+y=0, then x=y=0, so a=b=0):
x+y2x2y2+1+x+y2y2x2+1=x2+y2+1
Let us try a=1, b=0:
2⋅1⋅0+1+2⋅0⋅1+1=(1+0)(1+0+1)
2⋅1⋅1+0=(1+0)⋅2
2=2 (holds)
Similarly, a=0, b=1:
2⋅0⋅1+1+2⋅1⋅0+1=(0+1)(0+1+1)
0+2⋅1⋅1=(0+1)⋅2
2=2 (holds)
Try a=b=21:
2⋅21⋅21+1+2⋅21⋅21+1=(21+21)(21+21+1)
1⋅23+1⋅23=2⋅21⋅2
2⋅23=4⋅21=22
But 2⋅23=2⋅23=223=23=6, which is not equal to 22.
So only a=1, b=0 and a=0, b=1 work. Let's try to prove that a+b=1 is necessary.
Let a+b=1. Then b=1−a.
Plug into the equation:
2a(1−a)+1+2(1−a)a+1=(a+1−a)(1+1)
2a2−a+2(1−a)a+1=2(a+1−a)
Divide both sides by 2:
a2−a+(1−a)a+1=a+1−a
Let us try to prove that this equation only holds for a=0 or a=1.
Let a=0:
0⋅2+1⋅1=0+1
0+1=0+1
1=1 (holds)
Let a=1:
1⋅1+0⋅2=1+0
1+0=1+0
1=1 (holds)
For 0<a<1, try a=21:
21⋅23+21⋅23=21+21
23=2⋅21
23=2⋅21
3=2
Which is not true. Thus, the only solutions are a=0, b=1 and a=1, b=0, i.e., a+b=1.
Therefore, a+b=1.