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

Advancing to step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 31

Going ahead to step 2:
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: 0.0
Subtract 0 from 10 to get 10.
Fetch the next digit (2) from the dividend, attach it to 10 and continue: 102 / 31

Advancing to step 3:
If we divide 102 by 31, we get 3 and a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtracting 93 from 102 leaves us with 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 31

Let's proceed to step 4:
98 divided by 31 is 3 with a remainder of 5.
Put 3 as the next digit of the answer. 
Result so far: 33.0
Deduct 93 from 98 and we're left with 5.
Include the next digit (3) from the dividend after 5, then repeat: 53 / 31

Moving on to step 5:
If we divide 53 by 31, we get 1 and a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 331.0
Deduct 31 from 53 and we're left with 22.
Fetch the next digit (9) from the dividend, attach it to 22 and continue: 229 / 31

Let's proceed to step 6:
If we divide 229 by 31, we get 7 and a remainder of 12.
Write down 7 as next digit of the result. 
Result so far: 3317.0
Subtracting 217 from 229 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.

Step 7:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 3317.3
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.

Let's proceed to step 8:
If we divide 270 by 31, we get 8 and a remainder of 22.
The next digit of our result is 8. 
Result so far: 3317.38
If we take 248 away from 270, we end up 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.

Step 9:
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: 3317.387
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 10:
31 goes into 30 0 times with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 3317.387
Subtract 0 from 30 to 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 11:
31 goes into 300 9 times with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 3317.38709
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.

Advancing to step 12:
When dividing 210 by 31, we get 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 3317.387096
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.

Going ahead to step 13:
When dividing 240 by 31, we get 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 3317.3870967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 14:
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: 3317.38709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 3317.38709677, with a leftover of 1.3e-08.