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

Moving on to step 1:
8 divided by 42 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 42

Advancing to step 2:
42 goes into 87 2 times with a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 84 from 87 leaves us with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 42

On to step 3:
42 goes into 38 0 times with a remainder of 38.
Write down 0 as next digit of the result. 
Result so far: 20.0
If we subtract 0 from 38, we get 38.
Include the next digit (5) from the dividend after 38, then repeat: 385 / 42

Let's proceed to step 4:
385 divided by 42 is 9 with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 209.0
If we take 378 away from 385, we end up with 7.
Bring next digit (1) of the dividend behind the 7 and repeat the process: 71 / 42

Going ahead to step 5:
The number 42 fits into 71 1 times, leaving a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 2091.0
If we take 42 away from 71, we end up with 29.
Bring next digit (2) of the dividend behind the 29 and repeat the process: 292 / 42

Going ahead to step 6:
If we divide 292 by 42, we get 6 and a remainder of 40.
Use 6 as the next digit of our solution. 
Result so far: 20916.0
Subtracting 252 from 292 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 7:
400 divided by 42 is 9 with a remainder of 22.
The next digit of our result is 9. 
Result so far: 20916.9
If we subtract 378 from 400, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 8:
42 goes into 220 5 times with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 20916.95
Subtract 210 from 220 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
42 goes into 100 2 times with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 20916.952
The remainder is 16 after subtracting 84 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 10:
160 divided by 42 is 3 with a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 20916.9523
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 11:
340 divided by 42 is 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 20916.95238
Subtracting 336 from 340 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
When dividing 40 by 42, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 20916.95238
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 13:
42 goes into 400 9 times with a remainder of 22.
Use 9 as the next digit of our solution. 
Result so far: 20916.9523809
Subtract 378 from 400 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 14:
42 can be fit into 220 5 times, resulting in a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 20916.95238095
Subtract 210 from 220 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The quotient of the division is 20916.95238095, and the remainder is 1e-08.