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

Advancing to step 1:
31 goes into 3 0 times with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 31

Going ahead to step 2:
When dividing 30 by 31, we get 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 30, we get 30.
Include the next digit (7) from the dividend after 30, then repeat: 307 / 31

Advancing to step 3:
31 can be fit into 307 9 times, resulting in a remainder of 28.
Write down 9 as next digit of the result. 
Result so far: 9.0
If we take 279 away from 307, we end up with 28.
Fetch the next digit (8) from the dividend, attach it to 28 and continue: 288 / 31

Advancing to step 4:
288 divided by 31 is 9 with a remainder of 9.
The next digit of our result is 9. 
Result so far: 99.0
Subtracting 279 from 288 leaves us with 9.
Append the next digit (4) from the dividend to 9 and continue with: 94 / 31

Let's proceed to step 5:
31 can be fit into 94 3 times, resulting in a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 993.0
Deduct 93 from 94 and we're left with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 31

Moving on to step 6:
31 can be fit into 15 0 times, resulting in a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 9930.0
Subtracting 0 from 15 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 7:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 9930.4
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 8:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 9930.48
Subtracting 248 from 260 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 9:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 9930.483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 10:
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: 9930.4838
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 11:
220 divided by 31 is 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 9930.48387
Subtract 217 from 220 to 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.

On to step 12:
30 divided by 31 is 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 9930.48387
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.

Advancing to step 13:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 9930.4838709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 14:
If we divide 210 by 31, we get 6 and a remainder of 24.
The next digit of our result is 6. 
Result so far: 9930.48387096
If we take 186 away from 210, we end up 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.

The final outcome is 9930.48387096, with a leftover of 2.4e-08.