442257 divided by 31 
The aim is to understand the frequency of 31 in 442257.

On 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.
Grab the next digit (4) from the dividend, add it to 4, then carry on: 44 / 31

Advancing to step 2:
31 can be fit into 44 1 times, resulting in a remainder of 13.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 44, we get 13.
Append the next digit (2) from the dividend to 13 and continue with: 132 / 31

Going ahead to step 3:
31 goes into 132 4 times with a remainder of 8.
The next digit of our result is 4. 
Result so far: 14.0
Subtract 124 from 132 to get 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 31

Advancing to step 4:
The number 31 fits into 82 2 times, leaving a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 142.0
If we subtract 62 from 82, we get 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 31

Let's proceed to step 5:
31 can be fit into 205 6 times, resulting in a remainder of 19.
The next digit of our result is 6. 
Result so far: 1426.0
If we subtract 186 from 205, we get 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 31

Going ahead to step 6:
If we divide 197 by 31, we get 6 and a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 14266.0
If we take 186 away from 197, 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.

On to step 7:
If we divide 110 by 31, we get 3 and a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 14266.3
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 8:
If we divide 170 by 31, we get 5 and a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 14266.35
Subtract 155 from 170 to get 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 9:
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: 14266.354
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 10:
260 divided by 31 is 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 14266.3548
Deduct 248 from 260 and we're left 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 11:
31 can be fit into 120 3 times, resulting in a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 14266.35483
Deduct 93 from 120 and we're left 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.

Moving on to step 12:
270 divided by 31 is 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 14266.354838
The remainder is 22 after subtracting 248 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 13:
If we divide 220 by 31, we get 7 and a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 14266.3548387
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.

Step 14:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The next digit of our result is 0. 
Result so far: 14266.3548387
Subtracting 0 from 30 leaves us 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.

The final result is 14266.3548387 with a remainder of 3e-08.