We look at the division of 159230 by 31 
The aim is to understand the frequency of 31 in 159230.

Moving on to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 31

Moving on to step 2:
If we divide 15 by 31, we get 0 and a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Include the next digit (9) from the dividend after 15, then repeat: 159 / 31

Advancing to step 3:
31 goes into 159 5 times with a remainder of 4.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 155 from 159 leaves us with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 31

Let's proceed to step 4:
31 goes into 42 1 times with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 51.0
Deduct 31 from 42 and we're left with 11.
Append the next digit (3) from the dividend to 11 and continue with: 113 / 31

Let's proceed to step 5:
If we divide 113 by 31, we get 3 and a remainder of 20.
The next digit of our result is 3. 
Result so far: 513.0
Subtract 93 from 113 to get 20.
Grab the next digit (0) from the dividend, add it to 20, then carry on: 200 / 31

On to step 6:
If we divide 200 by 31, we get 6 and a remainder of 14.
The next digit of our result is 6. 
Result so far: 5136.0
Deduct 186 from 200 and we're left 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.

Advancing to step 7:
140 divided by 31 is 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 5136.4
If we subtract 124 from 140, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 8:
160 divided by 31 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 5136.45
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 9:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 5136.451
Deduct 31 from 50 and we're left 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.

Step 10:
31 goes into 190 6 times with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 5136.4516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 11:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 5136.45161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 12:
31 goes into 90 2 times with a remainder of 28.
The next digit of our result is 2. 
Result so far: 5136.451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 13:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 5136.4516129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 14:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 5136.4516129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

In conclusion, the division gives 5136.4516129 with a balance of 1e-08.