We look at the division of 31230657 by 123 
The aim is to understand the frequency of 123 in 31230657.

Moving on to step 1:
123 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 123

On to step 2:
123 can be fit into 31 0 times, resulting in a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Append the next digit (2) from the dividend to 31 and continue with: 312 / 123

Step 3:
When dividing 312 by 123, we get 2 with a remainder of 66.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 246 from 312 to get 66.
Grab the next digit (3) from the dividend, add it to 66, then carry on: 663 / 123

Going ahead to step 4:
When dividing 663 by 123, we get 5 with a remainder of 48.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
If we subtract 615 from 663, we get 48.
Include the next digit (0) from the dividend after 48, then repeat: 480 / 123

On to step 5:
When dividing 480 by 123, we get 3 with a remainder of 111.
The next digit of our result is 3. 
Result so far: 253.0
The remainder is 111 after subtracting 369 from 480.
Append the next digit (6) from the dividend to 111 and continue with: 1116 / 123

Advancing to step 6:
1116 divided by 123 is 9 with a remainder of 9.
Record the quotient 9 as the next digit in the result. 
Result so far: 2539.0
The remainder is 9 after subtracting 1107 from 1116.
Grab the next digit (5) from the dividend, add it to 9, then carry on: 95 / 123

Moving on to step 7:
95 divided by 123 is 0 with a remainder of 95.
The next digit of our result is 0. 
Result so far: 25390.0
If we subtract 0 from 95, we get 95.
Include the next digit (7) from the dividend after 95, then repeat: 957 / 123

Step 8:
When dividing 957 by 123, we get 7 with a remainder of 96.
Record the quotient 7 as the next digit in the result. 
Result so far: 253907.0
Deduct 861 from 957 and we're left with 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Going ahead to step 9:
The number 123 fits into 960 7 times, leaving a remainder of 99.
Put 7 as the next digit of the answer. 
Result so far: 253907.7
Subtracting 861 from 960 leaves us with 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Going ahead to step 10:
123 goes into 990 8 times with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 253907.78
Subtract 984 from 990 to get 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 11:
60 divided by 123 is 0 with a remainder of 60.
Use 0 as the next digit of our solution. 
Result so far: 253907.78
Deduct 0 from 60 and we're left 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.

Step 12:
123 can be fit into 600 4 times, resulting in a remainder of 108.
The number 4 becomes the next digit in our result. 
Result so far: 253907.7804
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.

Going ahead to step 13:
If we divide 1080 by 123, we get 8 and a remainder of 96.
Use 8 as the next digit of our solution. 
Result so far: 253907.78048
Subtract 984 from 1080 to 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.

On to step 14:
When dividing 960 by 123, we get 7 with a remainder of 99.
The number 7 becomes the next digit in our result. 
Result so far: 253907.780487
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.

Let's proceed to step 15:
123 can be fit into 990 8 times, resulting in a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 253907.7804878
The remainder is 6 after subtracting 984 from 990.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 16:
60 divided by 123 is 0 with a remainder of 60.
The next digit of our result is 0. 
Result so far: 253907.7804878
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.

Our division results in 253907.7804878 with a remaining 6e-08.