We look at the division of 1668145 by 313 
The aim is to understand the frequency of 313 in 1668145.

On to step 1:
The number 313 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 313

Advancing to step 2:
16 divided by 313 is 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 313

On to step 3:
313 goes into 166 0 times with a remainder of 166.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 166, we get 166.
Fetch the next digit (8) from the dividend, attach it to 166 and continue: 1668 / 313

On to step 4:
When dividing 1668 by 313, we get 5 with a remainder of 103.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 1565 from 1668 and we're left with 103.
Append the next digit (1) from the dividend to 103 and continue with: 1031 / 313

Going ahead to step 5:
The number 313 fits into 1031 3 times, leaving a remainder of 92.
The next digit of our result is 3. 
Result so far: 53.0
If we subtract 939 from 1031, we get 92.
Grab the next digit (4) from the dividend, add it to 92, then carry on: 924 / 313

Advancing to step 6:
If we divide 924 by 313, we get 2 and a remainder of 298.
The next digit of our result is 2. 
Result so far: 532.0
Deduct 626 from 924 and we're left with 298.
Grab the next digit (5) from the dividend, add it to 298, then carry on: 2985 / 313

Going ahead to step 7:
When dividing 2985 by 313, we get 9 with a remainder of 168.
Write down 9 as next digit of the result. 
Result so far: 5329.0
Deduct 2817 from 2985 and we're left with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

Going ahead to step 8:
If we divide 1680 by 313, we get 5 and a remainder of 115.
Record the quotient 5 as the next digit in the result. 
Result so far: 5329.5
Subtracting 1565 from 1680 leaves us with 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Let's proceed to step 9:
1150 divided by 313 is 3 with a remainder of 211.
Put 3 as the next digit of the answer. 
Result so far: 5329.53
Deduct 939 from 1150 and we're left with 211.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2110, and continue the process.

On to step 10:
2110 divided by 313 is 6 with a remainder of 232.
Put 6 as the next digit of the answer. 
Result so far: 5329.536
Subtracting 1878 from 2110 leaves us with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Advancing to step 11:
313 can be fit into 2320 7 times, resulting in a remainder of 129.
The next digit of our result is 7. 
Result so far: 5329.5367
If we subtract 2191 from 2320, we get 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1290, and continue the process.

On to step 12:
The number 313 fits into 1290 4 times, leaving a remainder of 38.
Write down 4 as next digit of the result. 
Result so far: 5329.53674
The remainder is 38 after subtracting 1252 from 1290.
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 13:
If we divide 380 by 313, we get 1 and a remainder of 67.
Put 1 as the next digit of the answer. 
Result so far: 5329.536741
Deduct 313 from 380 and we're left with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

On to step 14:
The number 313 fits into 670 2 times, leaving a remainder of 44.
The number 2 becomes the next digit in our result. 
Result so far: 5329.5367412
If we subtract 626 from 670, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

On to step 15:
When dividing 440 by 313, we get 1 with a remainder of 127.
Record the quotient 1 as the next digit in the result. 
Result so far: 5329.53674121
Subtracting 313 from 440 leaves us with 127.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1270, and continue the process.

The final result is 5329.53674121 with a remainder of 1.27e-07.