We're dividing 506387 by 17 
We want to divide 506387 by 17.

On to step 1:
17 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 17

Step 2:
When dividing 50 by 17, we get 2 with a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 34 from 50 to get 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 17

Going ahead to step 3:
The number 17 fits into 166 9 times, leaving a remainder of 13.
Use 9 as the next digit of our solution. 
Result so far: 29.0
If we take 153 away from 166, we end up with 13.
Bring next digit (3) of the dividend behind the 13 and repeat the process: 133 / 17

Step 4:
When dividing 133 by 17, we get 7 with a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 297.0
If we subtract 119 from 133, we get 14.
Fetch the next digit (8) from the dividend, attach it to 14 and continue: 148 / 17

Let's proceed to step 5:
The number 17 fits into 148 8 times, leaving a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 2978.0
If we subtract 136 from 148, we get 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 17

Going ahead to step 6:
If we divide 127 by 17, we get 7 and a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 29787.0
Deduct 119 from 127 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
80 divided by 17 is 4 with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 29787.4
The remainder is 12 after subtracting 68 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 8:
120 divided by 17 is 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 29787.47
If we subtract 119 from 120, 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.

On to step 9:
10 divided by 17 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 29787.47
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 10:
17 goes into 100 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 29787.4705
If we subtract 85 from 100, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 11:
17 goes into 150 8 times with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 29787.47058
Deduct 136 from 150 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 12:
If we divide 140 by 17, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 29787.470588
If we take 136 away from 140, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 29787.470588, with a leftover of 4e-07.