Let's divide 50788 by 3
We want to figure out the number of times 50788 can be divided by 3.

Let's proceed to step 1:
3 goes into 5 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 3 from 5 to get 2.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 3

On to step 2:
3 goes into 20 6 times with a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 16.0
The remainder is 2 after subtracting 18 from 20.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 3

Let's proceed to step 3:
3 goes into 27 9 times with a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 169.0
Subtracting 27 from 27 leaves us with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 3

Going ahead to step 4:
When dividing 8 by 3, we get 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 1692.0
The remainder is 2 after subtracting 6 from 8.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 3

Moving on to step 5:
3 goes into 28 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 16929.0
If we subtract 27 from 28, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 6:
3 can be fit into 10 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 16929.3
Subtracting 9 from 10 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
3 can be fit into 10 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 16929.33
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The quotient of the division is 16929.33, and the remainder is 0.001.