We divide 10014013 by 312
The aim is to understand the frequency of 312 in 10014013.

On to step 1:
If we divide 1 by 312, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 312

On to step 2:
The number 312 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 10 leaves us with 10.
Fetch the next digit (0) from the dividend, attach it to 10 and continue: 100 / 312

Going ahead to step 3:
When dividing 100 by 312, we get 0 with a remainder of 100.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 100, we end up with 100.
Grab the next digit (1) from the dividend, add it to 100, then carry on: 1001 / 312

Going ahead to step 4:
312 can be fit into 1001 3 times, resulting in a remainder of 65.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Deduct 936 from 1001 and we're left with 65.
Append the next digit (4) from the dividend to 65 and continue with: 654 / 312

Moving on to step 5:
312 can be fit into 654 2 times, resulting in a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Subtracting 624 from 654 leaves us with 30.
Fetch the next digit (0) from the dividend, attach it to 30 and continue: 300 / 312

On to step 6:
The number 312 fits into 300 0 times, leaving a remainder of 300.
Record the quotient 0 as the next digit in the result. 
Result so far: 320.0
Subtract 0 from 300 to get 300.
Append the next digit (1) from the dividend to 300 and continue with: 3001 / 312

Step 7:
When dividing 3001 by 312, we get 9 with a remainder of 193.
Record the quotient 9 as the next digit in the result. 
Result so far: 3209.0
If we take 2808 away from 3001, we end up with 193.
Append the next digit (3) from the dividend to 193 and continue with: 1933 / 312

Step 8:
When dividing 1933 by 312, we get 6 with a remainder of 61.
The next digit of our result is 6. 
Result so far: 32096.0
Deduct 1872 from 1933 and we're left with 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 610, and continue the process.

On to step 9:
610 divided by 312 is 1 with a remainder of 298.
Record the quotient 1 as the next digit in the result. 
Result so far: 32096.1
If we take 312 away from 610, we end up with 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Step 10:
312 goes into 2980 9 times with a remainder of 172.
The number 9 becomes the next digit in our result. 
Result so far: 32096.19
If we subtract 2808 from 2980, we get 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

Advancing to step 11:
312 can be fit into 1720 5 times, resulting in a remainder of 160.
Write down 5 as next digit of the result. 
Result so far: 32096.195
Subtracting 1560 from 1720 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Moving on to step 12:
If we divide 1600 by 312, we get 5 and a remainder of 40.
Use 5 as the next digit of our solution. 
Result so far: 32096.1955
Deduct 1560 from 1600 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final outcome is 32096.1955, with a leftover of 0.0004.