508791 ÷ 3 
We want to divide 508791 by 3.

Advancing to step 1:
When dividing 5 by 3, we get 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 3 from 5 to get 2.
Append the next digit (0) from the dividend to 2 and continue with: 20 / 3

Step 2:
If we divide 20 by 3, we get 6 and a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we take 18 away from 20, we end up with 2.
Include the next digit (8) from the dividend after 2, then repeat: 28 / 3

Advancing to step 3:
When dividing 28 by 3, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 169.0
If we subtract 27 from 28, we get 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 3

On to step 4:
The number 3 fits into 17 5 times, leaving a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 1695.0
If we take 15 away from 17, we end up with 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 3

Step 5:
3 can be fit into 29 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 16959.0
If we subtract 27 from 29, we get 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 3

Moving on to step 6:
3 can be fit into 21 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 169597.0
Subtracting 21 from 21 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 7:
If we divide 0 by 3, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 169597.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
If we divide 0 by 3, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 169597.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 169597.0 and a remainder of 0.0.