Let's divide 861372 by 5
The aim is to understand the frequency of 5 in 861372.

On to step 1:
8 divided by 5 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 5 from 8 to get 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 5

Advancing to step 2:
When dividing 36 by 5, we get 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 17.0
If we subtract 35 from 36, we get 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 5

Let's proceed to step 3:
5 goes into 11 2 times with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 172.0
If we subtract 10 from 11, we get 1.
Take the next digit (3) from the dividend and append it to 1, then repeat: 13 / 5

Advancing to step 4:
The number 5 fits into 13 2 times, leaving a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 1722.0
Subtract 10 from 13 to get 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 5

Let's proceed to step 5:
If we divide 37 by 5, we get 7 and a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 17227.0
Subtract 35 from 37 to get 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 5

Going ahead to step 6:
5 goes into 22 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 172274.0
If we take 20 away from 22, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
20 divided by 5 is 4 with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 172274.4
Deduct 20 from 20 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.

Moving on to step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 172274.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.

Let's proceed 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: 172274.4
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.

Our division results in 172274.4 with a remaining 0.0.