We look at the division of 86129786 by 642 
The aim is to understand the frequency of 642 in 86129786.

Advancing to step 1:
642 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (6) from the dividend to 8 and continue with: 86 / 642

Going ahead to step 2:
642 can be fit into 86 0 times, resulting in a remainder of 86.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 86 leaves us with 86.
Fetch the next digit (1) from the dividend, attach it to 86 and continue: 861 / 642

Moving on to step 3:
When dividing 861 by 642, we get 1 with a remainder of 219.
The next digit of our result is 1. 
Result so far: 1.0
If we take 642 away from 861, we end up with 219.
Bring next digit (2) of the dividend behind the 219 and repeat the process: 2192 / 642

On to step 4:
The number 642 fits into 2192 3 times, leaving a remainder of 266.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Subtract 1926 from 2192 to get 266.
Bring next digit (9) of the dividend behind the 266 and repeat the process: 2669 / 642

Let's proceed to step 5:
2669 divided by 642 is 4 with a remainder of 101.
The number 4 becomes the next digit in our result. 
Result so far: 134.0
If we take 2568 away from 2669, we end up with 101.
Grab the next digit (7) from the dividend, add it to 101, then carry on: 1017 / 642

Step 6:
642 can be fit into 1017 1 times, resulting in a remainder of 375.
Put 1 as the next digit of the answer. 
Result so far: 1341.0
Subtract 642 from 1017 to get 375.
Fetch the next digit (8) from the dividend, attach it to 375 and continue: 3758 / 642

On to step 7:
642 goes into 3758 5 times with a remainder of 548.
Write down 5 as next digit of the result. 
Result so far: 13415.0
If we subtract 3210 from 3758, we get 548.
Bring next digit (6) of the dividend behind the 548 and repeat the process: 5486 / 642

Moving on to step 8:
If we divide 5486 by 642, we get 8 and a remainder of 350.
The next digit of our result is 8. 
Result so far: 134158.0
Deduct 5136 from 5486 and we're left with 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3500, and continue the process.

On to step 9:
3500 divided by 642 is 5 with a remainder of 290.
Put 5 as the next digit of the answer. 
Result so far: 134158.5
The remainder is 290 after subtracting 3210 from 3500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2900, and continue the process.

On to step 10:
When dividing 2900 by 642, we get 4 with a remainder of 332.
The number 4 becomes the next digit in our result. 
Result so far: 134158.54
If we subtract 2568 from 2900, we get 332.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3320, and continue the process.

Moving on to step 11:
The number 642 fits into 3320 5 times, leaving a remainder of 110.
The number 5 becomes the next digit in our result. 
Result so far: 134158.545
Deduct 3210 from 3320 and we're left with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Step 12:
642 can be fit into 1100 1 times, resulting in a remainder of 458.
The number 1 becomes the next digit in our result. 
Result so far: 134158.5451
If we take 642 away from 1100, we end up with 458.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4580, and continue the process.

Advancing to step 13:
If we divide 4580 by 642, we get 7 and a remainder of 86.
The next digit of our result is 7. 
Result so far: 134158.54517
The remainder is 86 after subtracting 4494 from 4580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

On to step 14:
When dividing 860 by 642, we get 1 with a remainder of 218.
Put 1 as the next digit of the answer. 
Result so far: 134158.545171
Deduct 642 from 860 and we're left with 218.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2180, and continue the process.

On to step 15:
2180 divided by 642 is 3 with a remainder of 254.
The number 3 becomes the next digit in our result. 
Result so far: 134158.5451713
If we take 1926 away from 2180, we end up with 254.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2540, and continue the process.

Step 16:
If we divide 2540 by 642, we get 3 and a remainder of 614.
Put 3 as the next digit of the answer. 
Result so far: 134158.54517133
Subtract 1926 from 2540 to get 614.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6140, and continue the process.

The quotient of the division is 134158.54517133, and the remainder is 6.14e-07.