Let 'a' be nay positive integer and b=3
We know, a=bq+r,0≤r<b.
Now, a=3q+r,0≤r<3.
The possibilities of remainder = 0, 1 or 2
Case 1 −a=3qa2=9q2=3×(3q2)=3m(where m=3q2)
Case II −a=3q+1a2=(3q+1)2=9q2+6q+1=3(3q2+2q)+1=3m+1(where m=3q2+2q)
Case III −a=3q+2a2=(3q+2)2=9q2+12q+4=9q2+12q+3+1=3(3q2+4q+1)+1=3m+1 where m=3q2+4q+1)
From all the above cases it is clear that square of any positive integer (as in this case a2) is either of the form 3m or 3m +1.