3172299 divided by 123 
The aim is to understand the frequency of 123 in 3172299.

Advancing to step 1:
123 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
If we subtract 0 from 3, we get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 123

Moving on to step 2:
When dividing 31 by 123, we get 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Include the next digit (7) from the dividend after 31, then repeat: 317 / 123

Step 3:
123 goes into 317 2 times with a remainder of 71.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 71 after subtracting 246 from 317.
Take the next digit (2) from the dividend and append it to 71, then repeat: 712 / 123

Let's proceed to step 4:
123 goes into 712 5 times with a remainder of 97.
Write down 5 as next digit of the result. 
Result so far: 25.0
Subtract 615 from 712 to get 97.
Bring next digit (2) of the dividend behind the 97 and repeat the process: 972 / 123

Let's proceed to step 5:
When dividing 972 by 123, we get 7 with a remainder of 111.
Record the quotient 7 as the next digit in the result. 
Result so far: 257.0
Subtracting 861 from 972 leaves us with 111.
Append the next digit (9) from the dividend to 111 and continue with: 1119 / 123

Advancing to step 6:
123 goes into 1119 9 times with a remainder of 12.
The next digit of our result is 9. 
Result so far: 2579.0
Subtract 1107 from 1119 to get 12.
Include the next digit (9) from the dividend after 12, then repeat: 129 / 123

Going ahead to step 7:
If we divide 129 by 123, we get 1 and a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 25791.0
The remainder is 6 after subtracting 123 from 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 8:
When dividing 60 by 123, we get 0 with a remainder of 60.
The number 0 becomes the next digit in our result. 
Result so far: 25791.0
Subtract 0 from 60 to get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Moving on to step 9:
123 goes into 600 4 times with a remainder of 108.
Put 4 as the next digit of the answer. 
Result so far: 25791.04
Deduct 492 from 600 and we're left with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Advancing to step 10:
1080 divided by 123 is 8 with a remainder of 96.
Put 8 as the next digit of the answer. 
Result so far: 25791.048
If we subtract 984 from 1080, we get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Step 11:
The number 123 fits into 960 7 times, leaving a remainder of 99.
Use 7 as the next digit of our solution. 
Result so far: 25791.0487
The remainder is 99 after subtracting 861 from 960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Step 12:
The number 123 fits into 990 8 times, leaving a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 25791.04878
Deduct 984 from 990 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 13:
60 divided by 123 is 0 with a remainder of 60.
Use 0 as the next digit of our solution. 
Result so far: 25791.04878
If we take 0 away from 60, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Let's proceed to step 14:
If we divide 600 by 123, we get 4 and a remainder of 108.
The next digit of our result is 4. 
Result so far: 25791.0487804
Subtracting 492 from 600 leaves us with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Step 15:
123 goes into 1080 8 times with a remainder of 96.
Use 8 as the next digit of our solution. 
Result so far: 25791.04878048
If we subtract 984 from 1080, we get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

The final result is 25791.04878048 with a remainder of 9.6e-08.