We divide 3113161 by 664
The aim is to understand the frequency of 664 in 3113161.

Going ahead to step 1:
664 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 664

Advancing to step 2:
When dividing 31 by 664, we get 0 with a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Append the next digit (1) from the dividend to 31 and continue with: 311 / 664

Moving on to step 3:
The number 664 fits into 311 0 times, leaving a remainder of 311.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 311, we end up with 311.
Grab the next digit (3) from the dividend, add it to 311, then carry on: 3113 / 664

Let's proceed to step 4:
If we divide 3113 by 664, we get 4 and a remainder of 457.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 2656 from 3113 to get 457.
Bring next digit (1) of the dividend behind the 457 and repeat the process: 4571 / 664

Moving on to step 5:
The number 664 fits into 4571 6 times, leaving a remainder of 587.
Put 6 as the next digit of the answer. 
Result so far: 46.0
Deduct 3984 from 4571 and we're left with 587.
Take the next digit (6) from the dividend and append it to 587, then repeat: 5876 / 664

Let's proceed to step 6:
If we divide 5876 by 664, we get 8 and a remainder of 564.
Record the quotient 8 as the next digit in the result. 
Result so far: 468.0
Subtract 5312 from 5876 to get 564.
Include the next digit (1) from the dividend after 564, then repeat: 5641 / 664

Let's proceed to step 7:
When dividing 5641 by 664, we get 8 with a remainder of 329.
Record the quotient 8 as the next digit in the result. 
Result so far: 4688.0
If we take 5312 away from 5641, we end up with 329.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3290, and continue the process.

On to step 8:
3290 divided by 664 is 4 with a remainder of 634.
Use 4 as the next digit of our solution. 
Result so far: 4688.4
The remainder is 634 after subtracting 2656 from 3290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6340, and continue the process.

Advancing to step 9:
If we divide 6340 by 664, we get 9 and a remainder of 364.
Use 9 as the next digit of our solution. 
Result so far: 4688.49
Deduct 5976 from 6340 and we're left with 364.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3640, and continue the process.

Moving on to step 10:
The number 664 fits into 3640 5 times, leaving a remainder of 320.
Put 5 as the next digit of the answer. 
Result so far: 4688.495
If we take 3320 away from 3640, we end up with 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Advancing to step 11:
664 can be fit into 3200 4 times, resulting in a remainder of 544.
The next digit of our result is 4. 
Result so far: 4688.4954
The remainder is 544 after subtracting 2656 from 3200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5440, and continue the process.

On to step 12:
664 can be fit into 5440 8 times, resulting in a remainder of 128.
Put 8 as the next digit of the answer. 
Result so far: 4688.49548
The remainder is 128 after subtracting 5312 from 5440.
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:
664 goes into 1280 1 times with a remainder of 616.
Record the quotient 1 as the next digit in the result. 
Result so far: 4688.495481
The remainder is 616 after subtracting 664 from 1280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6160, and continue the process.

Advancing to step 14:
664 goes into 6160 9 times with a remainder of 184.
Put 9 as the next digit of the answer. 
Result so far: 4688.4954819
Deduct 5976 from 6160 and we're left with 184.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

Advancing to step 15:
1840 divided by 664 is 2 with a remainder of 512.
The next digit of our result is 2. 
Result so far: 4688.49548192
Subtracting 1328 from 1840 leaves us with 512.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5120, and continue the process.

The final outcome is 4688.49548192, with a leftover of 5.12e-07.