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

Advancing to step 1:
4 divided by 31 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 31

Let's proceed to step 2:
When dividing 42 by 31, we get 1 with a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 42 leaves us with 11.
Grab the next digit (8) from the dividend, add it to 11, then carry on: 118 / 31

Going ahead to step 3:
31 can be fit into 118 3 times, resulting in a remainder of 25.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
The remainder is 25 after subtracting 93 from 118.
Include the next digit (4) from the dividend after 25, then repeat: 254 / 31

Going ahead to step 4:
31 goes into 254 8 times with a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 138.0
If we subtract 248 from 254, we get 6.
Bring next digit (3) of the dividend behind the 6 and repeat the process: 63 / 31

On to step 5:
If we divide 63 by 31, we get 2 and a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 1382.0
If we subtract 62 from 63, we get 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 31

Going ahead to step 6:
31 goes into 14 0 times with a remainder of 14.
Write down 0 as next digit of the result. 
Result so far: 13820.0
Subtracting 0 from 14 leaves us with 14.
Bring next digit (3) of the dividend behind the 14 and repeat the process: 143 / 31

On to step 7:
If we divide 143 by 31, we get 4 and a remainder of 19.
Record the quotient 4 as the next digit in the result. 
Result so far: 138204.0
Subtracting 124 from 143 leaves us with 19.
Bring next digit (9) of the dividend behind the 19 and repeat the process: 199 / 31

Let's proceed to step 8:
31 can be fit into 199 6 times, resulting in a remainder of 13.
The next digit of our result is 6. 
Result so far: 1382046.0
If we subtract 186 from 199, 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.

Advancing to step 9:
When dividing 130 by 31, we get 4 with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 1382046.4
Deduct 124 from 130 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 10:
60 divided by 31 is 1 with a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 1382046.41
If we subtract 31 from 60, we get 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 11:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 1382046.419
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 12:
When dividing 110 by 31, we get 3 with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 1382046.4193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 13:
The number 31 fits into 170 5 times, leaving a remainder of 15.
The next digit of our result is 5. 
Result so far: 1382046.41935
If we take 155 away from 170, we end up 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.

Let's proceed to step 14:
150 divided by 31 is 4 with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 1382046.419354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 15:
31 goes into 260 8 times with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 1382046.4193548
If we take 248 away from 260, we end up 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.

Moving on to step 16:
When dividing 120 by 31, we get 3 with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 1382046.41935483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Our division results in 1382046.41935483 with a remaining 2.7e-08.