Let's divide 930959 by 31
The aim is to understand the frequency of 31 in 930959.

Going ahead to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Include the next digit (3) from the dividend after 9, then repeat: 93 / 31

Step 2:
31 can be fit into 93 3 times, resulting in a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 93 from 93, we get 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 31

Step 3:
If we divide 0 by 31, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 30.0
If we take 0 away from 0, we end up with 0.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 31

Advancing to step 4:
31 goes into 9 0 times with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 300.0
If we take 0 away from 9, we end up with 9.
Bring next digit (5) of the dividend behind the 9 and repeat the process: 95 / 31

Let's proceed to step 5:
31 can be fit into 95 3 times, resulting in a remainder of 2.
The next digit of our result is 3. 
Result so far: 3003.0
If we subtract 93 from 95, we get 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 31

Let's proceed to step 6:
If we divide 29 by 31, we get 0 and a remainder of 29.
Put 0 as the next digit of the answer. 
Result so far: 30030.0
If we take 0 away from 29, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 7:
31 goes into 290 9 times with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 30030.9
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 8:
110 divided by 31 is 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 30030.93
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
31 goes into 170 5 times with a remainder of 15.
The next digit of our result is 5. 
Result so far: 30030.935
Subtracting 155 from 170 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.

Advancing to step 10:
150 divided by 31 is 4 with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 30030.9354
Subtracting 124 from 150 leaves us with 26.
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 11:
31 goes into 260 8 times with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 30030.93548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 12:
The number 31 fits into 120 3 times, leaving a remainder of 27.
The next digit of our result is 3. 
Result so far: 30030.935483
If we take 93 away from 120, we end up 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.

Going ahead to step 13:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 30030.9354838
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.

Step 14:
When dividing 220 by 31, we get 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 30030.93548387
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.

The final outcome is 30030.93548387, with a leftover of 3e-09.