We're dividing 357891 by 31 
The aim is to understand the frequency of 31 in 357891.

Let's proceed to step 1:
31 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 31

Step 2:
31 can be fit into 35 1 times, resulting in a remainder of 4.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 35, we get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

Moving on to step 3:
The number 31 fits into 47 1 times, leaving a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
The remainder is 16 after subtracting 31 from 47.
Grab the next digit (8) from the dividend, add it to 16, then carry on: 168 / 31

Step 4:
168 divided by 31 is 5 with a remainder of 13.
The number 5 becomes the next digit in our result. 
Result so far: 115.0
Subtracting 155 from 168 leaves us with 13.
Bring next digit (9) of the dividend behind the 13 and repeat the process: 139 / 31

On to step 5:
When dividing 139 by 31, we get 4 with a remainder of 15.
The next digit of our result is 4. 
Result so far: 1154.0
Deduct 124 from 139 and we're left with 15.
Include the next digit (1) from the dividend after 15, then repeat: 151 / 31

Going ahead to step 6:
31 can be fit into 151 4 times, resulting in a remainder of 27.
Record the quotient 4 as the next digit in the result. 
Result so far: 11544.0
The remainder is 27 after subtracting 124 from 151.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 7:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 11544.8
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 8:
220 divided by 31 is 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 11544.87
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 9:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 11544.87
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 10:
31 can be fit into 300 9 times, resulting in a remainder of 21.
The next digit of our result is 9. 
Result so far: 11544.8709
If we take 279 away from 300, we end up 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.

Going ahead to step 11:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 11544.87096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 12:
If we divide 240 by 31, we get 7 and a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 11544.870967
If we take 217 away from 240, we end up 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.

Let's proceed to step 13:
When dividing 230 by 31, we get 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 11544.8709677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 11544.8709677 with a remaining 1.3e-07.