We're dividing 40949 by 42 
The aim is to understand the frequency of 42 in 40949.

Advancing to step 1:
If we divide 4 by 42, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 42

Advancing to step 2:
40 divided by 42 is 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Fetch the next digit (9) from the dividend, attach it to 40 and continue: 409 / 42

Going ahead to step 3:
The number 42 fits into 409 9 times, leaving a remainder of 31.
Put 9 as the next digit of the answer. 
Result so far: 9.0
The remainder is 31 after subtracting 378 from 409.
Append the next digit (4) from the dividend to 31 and continue with: 314 / 42

Going ahead to step 4:
314 divided by 42 is 7 with a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 97.0
If we take 294 away from 314, we end up with 20.
Take the next digit (9) from the dividend and append it to 20, then repeat: 209 / 42

On to step 5:
42 can be fit into 209 4 times, resulting in a remainder of 41.
Use 4 as the next digit of our solution. 
Result so far: 974.0
Subtract 168 from 209 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 6:
42 can be fit into 410 9 times, resulting in a remainder of 32.
Put 9 as the next digit of the answer. 
Result so far: 974.9
The remainder is 32 after subtracting 378 from 410.
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 7:
When dividing 320 by 42, we get 7 with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 974.97
If we take 294 away from 320, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
42 goes into 260 6 times with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 974.976
Subtracting 252 from 260 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
If we divide 80 by 42, we get 1 and a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 974.9761
The remainder is 38 after subtracting 42 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 10:
380 divided by 42 is 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 974.97619
The remainder is 2 after subtracting 378 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 11:
42 can be fit into 20 0 times, resulting in a remainder of 20.
The next digit of our result is 0. 
Result so far: 974.97619
If we subtract 0 from 20, 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.

Let's proceed to step 12:
When dividing 200 by 42, we get 4 with a remainder of 32.
The number 4 becomes the next digit in our result. 
Result so far: 974.9761904
If we take 168 away from 200, we end up with 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 13:
42 goes into 320 7 times with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 974.97619047
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.

The quotient of the division is 974.97619047, and the remainder is 2.6e-08.