125940 ÷ 31 
The aim is to understand the frequency of 31 in 125940.

Moving on to step 1:
1 divided by 31 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 31

On to step 2:
31 can be fit into 12 0 times, resulting in a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 12, we end up with 12.
Bring next digit (5) of the dividend behind the 12 and repeat the process: 125 / 31

On to step 3:
125 divided by 31 is 4 with a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 1 after subtracting 124 from 125.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 31

Let's proceed to step 4:
19 divided by 31 is 0 with a remainder of 19.
Put 0 as the next digit of the answer. 
Result so far: 40.0
If we subtract 0 from 19, we get 19.
Include the next digit (4) from the dividend after 19, then repeat: 194 / 31

Going ahead to step 5:
If we divide 194 by 31, we get 6 and a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 406.0
Deduct 186 from 194 and we're left with 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 31

Advancing to step 6:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 4062.0
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
180 divided by 31 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 4062.5
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 8:
31 goes into 250 8 times with a remainder of 2.
The next digit of our result is 8. 
Result so far: 4062.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 9:
If we divide 20 by 31, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 4062.58
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 10:
200 divided by 31 is 6 with a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 4062.5806
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 11:
31 goes into 140 4 times with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 4062.58064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 12:
31 can be fit into 160 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 4062.580645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 13:
31 goes into 50 1 times with a remainder of 19.
The next digit of our result is 1. 
Result so far: 4062.5806451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 14:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 4062.58064516
Subtracting 186 from 190 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 4062.58064516, and the remainder is 4e-09.