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

Step 1:
1 divided by 42 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 42

Advancing to step 2:
The number 42 fits into 12 0 times, leaving a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 12, we end up with 12.
Bring next digit (5) of the dividend behind the 12 and repeat the process: 125 / 42

Moving on to step 3:
The number 42 fits into 125 2 times, leaving a remainder of 41.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 41 after subtracting 84 from 125.
Bring next digit (2) of the dividend behind the 41 and repeat the process: 412 / 42

Let's proceed to step 4:
When dividing 412 by 42, we get 9 with a remainder of 34.
Write down 9 as next digit of the result. 
Result so far: 29.0
Subtract 378 from 412 to get 34.
Fetch the next digit (2) from the dividend, attach it to 34 and continue: 342 / 42

Advancing to step 5:
When dividing 342 by 42, we get 8 with a remainder of 6.
The next digit of our result is 8. 
Result so far: 298.0
Deduct 336 from 342 and we're left with 6.
Grab the next digit (2) from the dividend, add it to 6, then carry on: 62 / 42

Let's proceed to step 6:
If we divide 62 by 42, we get 1 and a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 2981.0
If we subtract 42 from 62, 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.

On to step 7:
If we divide 200 by 42, we get 4 and a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 2981.4
If we subtract 168 from 200, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 8:
320 divided by 42 is 7 with a remainder of 26.
The number 7 becomes the next digit in our result. 
Result so far: 2981.47
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 9:
The number 42 fits into 260 6 times, leaving a remainder of 8.
The next digit of our result is 6. 
Result so far: 2981.476
Subtract 252 from 260 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 10:
When dividing 80 by 42, we get 1 with a remainder of 38.
The next digit of our result is 1. 
Result so far: 2981.4761
If we subtract 42 from 80, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 11:
If we divide 380 by 42, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 2981.47619
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 12:
42 can be fit into 20 0 times, resulting in a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 2981.47619
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 13:
If we divide 200 by 42, we get 4 and a remainder of 32.
The number 4 becomes the next digit in our result. 
Result so far: 2981.4761904
Subtract 168 from 200 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 14:
If we divide 320 by 42, we get 7 and a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 2981.47619047
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

After the division, we end up with 2981.47619047 and a remainder of 2.6e-08.