Let's divide 877857 by 42
The aim is to understand the frequency of 42 in 877857.

Going ahead to step 1:
42 can be fit into 8 0 times, resulting in a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 42

Step 2:
87 divided by 42 is 2 with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 84 from 87 and we're left with 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 42

Step 3:
37 divided by 42 is 0 with a remainder of 37.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Deduct 0 from 37 and we're left with 37.
Grab the next digit (8) from the dividend, add it to 37, then carry on: 378 / 42

Let's proceed to step 4:
378 divided by 42 is 9 with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 209.0
Subtract 378 from 378 to get 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 42

Going ahead to step 5:
If we divide 5 by 42, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 2090.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 42

Let's proceed to step 6:
The number 42 fits into 57 1 times, leaving a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 20901.0
Subtract 42 from 57 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
150 divided by 42 is 3 with a remainder of 24.
Use 3 as the next digit of our solution. 
Result so far: 20901.3
If we subtract 126 from 150, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 8:
If we divide 240 by 42, we get 5 and a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 20901.35
Subtract 210 from 240 to get 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:
42 can be fit into 300 7 times, resulting in a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 20901.357
The remainder is 6 after subtracting 294 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 10:
If we divide 60 by 42, we get 1 and a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 20901.3571
If we take 42 away from 60, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 11:
42 can be fit into 180 4 times, resulting in a remainder of 12.
The next digit of our result is 4. 
Result so far: 20901.35714
If we subtract 168 from 180, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 12:
120 divided by 42 is 2 with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 20901.357142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 13:
360 divided by 42 is 8 with a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 20901.3571428
Deduct 336 from 360 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 14:
42 goes into 240 5 times with a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 20901.35714285
Deduct 210 from 240 and we're left 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.

The final result is 20901.35714285 with a remainder of 3e-08.