877845 divided by 5 
The aim is to understand the frequency of 5 in 877845.

Going ahead to step 1:
8 divided by 5 is 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 5 from 8 to get 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 5

Step 2:
37 divided by 5 is 7 with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 17.0
The remainder is 2 after subtracting 35 from 37.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 5

Advancing to step 3:
27 divided by 5 is 5 with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 175.0
If we subtract 25 from 27, we get 2.
Include the next digit (8) from the dividend after 2, then repeat: 28 / 5

Moving on to step 4:
5 can be fit into 28 5 times, resulting in a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 1755.0
Subtract 25 from 28 to get 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 5

Advancing to step 5:
34 divided by 5 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 17556.0
If we take 30 away from 34, we end up with 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 5

Step 6:
45 divided by 5 is 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 175569.0
Subtract 45 from 45 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.

Step 7:
If we divide 0 by 5, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 175569.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
0 divided by 5 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 175569.0
The remainder is 0 after subtracting 0 from 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 quotient of the division is 175569.0, and the remainder is 0.0.