We look at the division of 917857 by 5 
The aim is to understand the frequency of 5 in 917857.

On to step 1:
9 divided by 5 is 1 with a remainder of 4.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 5 from 9 leaves us with 4.
Grab the next digit (1) from the dividend, add it to 4, then carry on: 41 / 5

Advancing to step 2:
5 goes into 41 8 times with a remainder of 1.
The next digit of our result is 8. 
Result so far: 18.0
If we take 40 away from 41, we end up with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 5

Step 3:
The number 5 fits into 17 3 times, leaving a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 183.0
Deduct 15 from 17 and we're left with 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 5

Moving on to step 4:
5 goes into 28 5 times with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 1835.0
If we subtract 25 from 28, we get 3.
Grab the next digit (5) from the dividend, add it to 3, then carry on: 35 / 5

Advancing to step 5:
When dividing 35 by 5, we get 7 with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 18357.0
If we take 35 away from 35, we end up with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 5

On to step 6:
5 can be fit into 7 1 times, resulting in a remainder of 2.
The next digit of our result is 1. 
Result so far: 183571.0
The remainder is 2 after subtracting 5 from 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
When dividing 20 by 5, we get 4 with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 183571.4
Subtract 20 from 20 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.

Going ahead to step 8:
5 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 183571.4
Subtracting 0 from 0 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 9:
When dividing 0 by 5, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 183571.4
Deduct 0 from 0 and we're left 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.

The final result is 183571.4 with a remainder of 0.0.