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

On to step 1:
42 goes into 9 0 times with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Append the next digit (7) from the dividend to 9 and continue with: 97 / 42

Step 2:
When dividing 97 by 42, we get 2 with a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 84 from 97 and we're left with 13.
Grab the next digit (3) from the dividend, add it to 13, then carry on: 133 / 42

Moving on to step 3:
42 goes into 133 3 times with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
If we take 126 away from 133, we end up with 7.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 42

Moving on to step 4:
The number 42 fits into 71 1 times, leaving a remainder of 29.
The next digit of our result is 1. 
Result so far: 231.0
If we subtract 42 from 71, we get 29.
Append the next digit (8) from the dividend to 29 and continue with: 298 / 42

Let's proceed to step 5:
The number 42 fits into 298 7 times, leaving a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 2317.0
Subtract 294 from 298 to get 4.
Bring next digit (1) of the dividend behind the 4 and repeat the process: 41 / 42

Let's proceed to step 6:
If we divide 41 by 42, we get 0 and a remainder of 41.
Write down 0 as next digit of the result. 
Result so far: 23170.0
If we subtract 0 from 41, we get 41.
Take the next digit (5) from the dividend and append it to 41, then repeat: 415 / 42

Going ahead to step 7:
If we divide 415 by 42, we get 9 and a remainder of 37.
Write down 9 as next digit of the result. 
Result so far: 231709.0
Subtracting 378 from 415 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 8:
When dividing 370 by 42, we get 8 with a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 231709.8
If we take 336 away from 370, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 9:
340 divided by 42 is 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 231709.88
If we subtract 336 from 340, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 231709.88 with a remaining 0.004.