A number, when divided by 6, leaves a remainder 3. When the square of that number is divided by 6, the remainder is 3.
3
Let the number be x.
x=6q+3
Then,
x2=(6q+3)2
=36q2+36q+9
=6(6q2+6q+1)+3
Thus, when x2 is divided by 6, then remainder is 3.