We divide 842089 by 5
The aim is to understand the frequency of 5 in 842089.

Let's proceed to step 1:
5 goes into 8 1 times with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 5 from 8 to get 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 5

Let's proceed to step 2:
If we divide 34 by 5, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 16.0
If we take 30 away from 34, we end up with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 5

On to step 3:
If we divide 42 by 5, we get 8 and a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 168.0
Deduct 40 from 42 and we're left with 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 5

Going ahead to step 4:
5 goes into 20 4 times with a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 1684.0
Deduct 20 from 20 and we're left with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 5

Advancing to step 5:
When dividing 8 by 5, we get 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 16841.0
The remainder is 3 after subtracting 5 from 8.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 5

Step 6:
If we divide 39 by 5, we get 7 and a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 168417.0
If we subtract 35 from 39, we 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.

Moving on to step 7:
5 can be fit into 40 8 times, resulting in a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 168417.8
If we subtract 40 from 40, we 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.

Moving on to step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 168417.8
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.

On to step 9:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 168417.8
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.

After the division, we end up with 168417.8 and a remainder of 0.0.