We look at the division of 38380064 by 312 
The aim is to understand the frequency of 312 in 38380064.

Step 1:
3 divided by 312 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 312

Advancing to step 2:
The number 312 fits into 38 0 times, leaving a remainder of 38.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 38, we end up with 38.
Append the next digit (3) from the dividend to 38 and continue with: 383 / 312

On to step 3:
312 goes into 383 1 times with a remainder of 71.
The next digit of our result is 1. 
Result so far: 1.0
If we take 312 away from 383, we end up with 71.
Grab the next digit (8) from the dividend, add it to 71, then carry on: 718 / 312

Advancing to step 4:
312 goes into 718 2 times with a remainder of 94.
The next digit of our result is 2. 
Result so far: 12.0
If we take 624 away from 718, we end up with 94.
Include the next digit (0) from the dividend after 94, then repeat: 940 / 312

Going ahead to step 5:
312 goes into 940 3 times with a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 123.0
Subtracting 936 from 940 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 312

Going ahead to step 6:
312 can be fit into 40 0 times, resulting in a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 1230.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (6) from the dividend, add it to 40, then carry on: 406 / 312

On to step 7:
If we divide 406 by 312, we get 1 and a remainder of 94.
The number 1 becomes the next digit in our result. 
Result so far: 12301.0
Subtracting 312 from 406 leaves us with 94.
Append the next digit (4) from the dividend to 94 and continue with: 944 / 312

On to step 8:
312 can be fit into 944 3 times, resulting in a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 123013.0
Subtract 936 from 944 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.

Moving on to step 9:
312 goes into 80 0 times with a remainder of 80.
The next digit of our result is 0. 
Result so far: 123013.0
Deduct 0 from 80 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Step 10:
The number 312 fits into 800 2 times, leaving a remainder of 176.
Put 2 as the next digit of the answer. 
Result so far: 123013.02
Subtract 624 from 800 to get 176.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

Going ahead to step 11:
1760 divided by 312 is 5 with a remainder of 200.
Record the quotient 5 as the next digit in the result. 
Result so far: 123013.025
The remainder is 200 after subtracting 1560 from 1760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

On to step 12:
312 can be fit into 2000 6 times, resulting in a remainder of 128.
Write down 6 as next digit of the result. 
Result so far: 123013.0256
If we take 1872 away from 2000, we end up with 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

On to step 13:
1280 divided by 312 is 4 with a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 123013.02564
Subtracting 1248 from 1280 leaves us 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.

On to step 14:
312 goes into 320 1 times with a remainder of 8.
Put 1 as the next digit of the answer. 
Result so far: 123013.025641
The remainder is 8 after subtracting 312 from 320.
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 15:
80 divided by 312 is 0 with a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 123013.025641
Subtract 0 from 80 to get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Going ahead to step 16:
800 divided by 312 is 2 with a remainder of 176.
The next digit of our result is 2. 
Result so far: 123013.02564102
The remainder is 176 after subtracting 624 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

The final result is 123013.02564102 with a remainder of 1.76e-07.