313865 ÷ 42 
The aim is to understand the frequency of 42 in 313865.

Going ahead to step 1:
If we divide 3 by 42, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 42

On to step 2:
If we divide 31 by 42, we get 0 and a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Grab the next digit (3) from the dividend, add it to 31, then carry on: 313 / 42

Going ahead to step 3:
The number 42 fits into 313 7 times, leaving a remainder of 19.
Write down 7 as next digit of the result. 
Result so far: 7.0
Subtracting 294 from 313 leaves us with 19.
Take the next digit (8) from the dividend and append it to 19, then repeat: 198 / 42

Going ahead to step 4:
If we divide 198 by 42, we get 4 and a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 74.0
Subtract 168 from 198 to get 30.
Fetch the next digit (6) from the dividend, attach it to 30 and continue: 306 / 42

Going ahead to step 5:
306 divided by 42 is 7 with a remainder of 12.
The number 7 becomes the next digit in our result. 
Result so far: 747.0
Deduct 294 from 306 and we're left with 12.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 42

On to step 6:
42 can be fit into 125 2 times, resulting in a remainder of 41.
The next digit of our result is 2. 
Result so far: 7472.0
The remainder is 41 after subtracting 84 from 125.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 7:
42 can be fit into 410 9 times, resulting in a remainder of 32.
Use 9 as the next digit of our solution. 
Result so far: 7472.9
Deduct 378 from 410 and we're left 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 8:
42 goes into 320 7 times with a remainder of 26.
The next digit of our result is 7. 
Result so far: 7472.97
Subtract 294 from 320 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 9:
If we divide 260 by 42, we get 6 and a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 7472.976
If we subtract 252 from 260, we 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.
Write down 1 as next digit of the result. 
Result so far: 7472.9761
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.

On to step 11:
42 goes into 380 9 times with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 7472.97619
Subtracting 378 from 380 leaves us 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.

Step 12:
If we divide 20 by 42, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 7472.97619
Subtracting 0 from 20 leaves us 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.

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: 7472.9761904
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.

Moving on to step 14:
The number 42 fits into 320 7 times, leaving a remainder of 26.
The number 7 becomes the next digit in our result. 
Result so far: 7472.97619047
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.

The final result is 7472.97619047 with a remainder of 2.6e-08.