We divide 501078 by 3
We're looking to find how many times 3 goes into 501078.

Moving on 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.
Append the next digit (0) from the dividend to 2 and continue with: 20 / 3

Let's proceed to step 2:
20 divided by 3 is 6 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.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 3

Going ahead to step 3:
3 can be fit into 21 7 times, resulting in a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 167.0
Deduct 21 from 21 and we're left with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 3

Moving on to step 4:
3 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1670.0
Subtracting 0 from 0 leaves us with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 3

On to step 5:
The number 3 fits into 7 2 times, leaving a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 16702.0
Subtract 6 from 7 to get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 3

Advancing to step 6:
3 goes into 18 6 times with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 167026.0
Subtract 18 from 18 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.

Let's proceed to step 7:
When dividing 0 by 3, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 167026.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.

Let's proceed to step 8:
If we divide 0 by 3, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 167026.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.

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