We divide 140054 by 31
The aim is to understand the frequency of 31 in 140054.

On to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 31

Moving on to step 2:
31 goes into 14 0 times with a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 14 and we're left with 14.
Take the next digit (0) from the dividend and append it to 14, then repeat: 140 / 31

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

Advancing to step 4:
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: 45.0
Subtracting 155 from 160 leaves us with 5.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 31

Advancing to step 5:
31 can be fit into 55 1 times, resulting in a remainder of 24.
The next digit of our result is 1. 
Result so far: 451.0
If we subtract 31 from 55, we get 24.
Grab the next digit (4) from the dividend, add it to 24, then carry on: 244 / 31

Moving on to step 6:
31 can be fit into 244 7 times, resulting in a remainder of 27.
Record the quotient 7 as the next digit in the result. 
Result so far: 4517.0
Subtract 217 from 244 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
The number 31 fits into 270 8 times, leaving a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 4517.8
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 8:
31 goes into 220 7 times with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 4517.87
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 9:
If we divide 30 by 31, we get 0 and a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 4517.87
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
31 can be fit into 300 9 times, resulting in a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 4517.8709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 11:
31 goes into 210 6 times with a remainder of 24.
The next digit of our result is 6. 
Result so far: 4517.87096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 12:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The next digit of our result is 7. 
Result so far: 4517.870967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 13:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 4517.8709677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 4517.8709677, and the remainder is 1.3e-07.