Let's divide 40858 by 85
The aim is to understand the frequency of 85 in 40858.

On to step 1:
4 divided by 85 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 85

Going ahead to step 2:
When dividing 40 by 85, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (8) from the dividend, add it to 40, then carry on: 408 / 85

Step 3:
The number 85 fits into 408 4 times, leaving a remainder of 68.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 340 from 408 and we're left with 68.
Append the next digit (5) from the dividend to 68 and continue with: 685 / 85

Step 4:
The number 85 fits into 685 8 times, leaving a remainder of 5.
The next digit of our result is 8. 
Result so far: 48.0
Deduct 680 from 685 and we're left with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 85

Let's proceed to step 5:
The number 85 fits into 58 0 times, leaving a remainder of 58.
Put 0 as the next digit of the answer. 
Result so far: 480.0
Subtracting 0 from 58 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 6:
85 goes into 580 6 times with a remainder of 70.
Record the quotient 6 as the next digit in the result. 
Result so far: 480.6
The remainder is 70 after subtracting 510 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Moving on to step 7:
When dividing 700 by 85, we get 8 with a remainder of 20.
The next digit of our result is 8. 
Result so far: 480.68
If we subtract 680 from 700, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
85 can be fit into 200 2 times, resulting in a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 480.682
If we take 170 away from 200, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 9:
85 can be fit into 300 3 times, resulting in a remainder of 45.
Write down 3 as next digit of the result. 
Result so far: 480.6823
Subtract 255 from 300 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Advancing to step 10:
85 can be fit into 450 5 times, resulting in a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 480.68235
The remainder is 25 after subtracting 425 from 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 11:
85 can be fit into 250 2 times, resulting in a remainder of 80.
Record the quotient 2 as the next digit in the result. 
Result so far: 480.682352
Deduct 170 from 250 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 12:
When dividing 800 by 85, we get 9 with a remainder of 35.
The next digit of our result is 9. 
Result so far: 480.6823529
If we take 765 away from 800, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 13:
85 goes into 350 4 times with a remainder of 10.
The number 4 becomes the next digit in our result. 
Result so far: 480.68235294
Deduct 340 from 350 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 480.68235294 with a remaining 1e-08.