Ta có :
(a+3) ⋮ 5 => (a+3)2 ⋮ 5 => (a2+6a+9) ⋮ 5
(b+4) ⋮ 5 => (b+4)2 ⋮ 5 => (b2+8b+16) ⋮ 5
=> (a2+6a+9+b2+8b+16) ⋮ 5
=> (a2+5a+a+b2+3b+5b+25) ⋮ 5
Vì 5a⋮ 5 ; 5b⋮ 5 ; 25⋮ 5
=> (a2+a+b2+3b) ⋮ 5
Lại có :
(a+3) ⋮ 5
(b+4) ⋮ 5 => 3(b+4) ⋮ 5 => (3b+12) ⋮ 5
=> (a+3+3b+12) ⋮ 5
=> (a+15+3b) ⋮ 5
=> (a+3b) ⋮ 5 (Vì 15 ⋮ 5 )
Mà (a2+a+b2+3b) ⋮ 5
=> (a2+b2) ⋮ 5
Vậy (a2+b2) ⋮ 5