5017 ÷ 78 
We want to figure out the number of times 5017 can be divided by 78.

Advancing to step 1:
78 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 78

Advancing to step 2:
78 goes into 50 0 times with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Include the next digit (1) from the dividend after 50, then repeat: 501 / 78

Step 3:
78 can be fit into 501 6 times, resulting in a remainder of 33.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 468 from 501 to get 33.
Fetch the next digit (7) from the dividend, attach it to 33 and continue: 337 / 78

On to step 4:
337 divided by 78 is 4 with a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 64.0
The remainder is 25 after subtracting 312 from 337.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 5:
250 divided by 78 is 3 with a remainder of 16.
Record the quotient 3 as the next digit in the result. 
Result so far: 64.3
Subtract 234 from 250 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 6:
160 divided by 78 is 2 with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 64.32
Deduct 156 from 160 and we're left 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.

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

On to step 8:
If we divide 400 by 78, we get 5 and a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 64.3205
The remainder is 10 after subtracting 390 from 400.
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 9:
If we divide 100 by 78, we get 1 and a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 64.32051
Deduct 78 from 100 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 10:
78 can be fit into 220 2 times, resulting in a remainder of 64.
Record the quotient 2 as the next digit in the result. 
Result so far: 64.320512
The remainder is 64 after subtracting 156 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 11:
78 can be fit into 640 8 times, resulting in a remainder of 16.
Use 8 as the next digit of our solution. 
Result so far: 64.3205128
If we take 624 away from 640, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 12:
78 can be fit into 160 2 times, resulting in a remainder of 4.
The next digit of our result is 2. 
Result so far: 64.32051282
Subtract 156 from 160 to get 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 result is 64.32051282 with a remainder of 4e-09.