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

Advancing to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (3) from the dividend and append it to 3, then repeat: 33 / 31

Step 2:
31 can be fit into 33 1 times, resulting in a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 31 from 33 leaves us with 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 31

Step 3:
The number 31 fits into 24 0 times, leaving a remainder of 24.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we take 0 away from 24, we end up with 24.
Include the next digit (4) from the dividend after 24, then repeat: 244 / 31

Step 4:
31 can be fit into 244 7 times, resulting in a remainder of 27.
Put 7 as the next digit of the answer. 
Result so far: 107.0
Subtract 217 from 244 to get 27.
Fetch the next digit (8) from the dividend, attach it to 27 and continue: 278 / 31

On to step 5:
The number 31 fits into 278 8 times, leaving a remainder of 30.
Record the quotient 8 as the next digit in the result. 
Result so far: 1078.0
If we subtract 248 from 278, we get 30.
Fetch the next digit (7) from the dividend, attach it to 30 and continue: 307 / 31

Step 6:
If we divide 307 by 31, we get 9 and a remainder of 28.
Put 9 as the next digit of the answer. 
Result so far: 10789.0
Subtracting 279 from 307 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 7:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 10789.9
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 8:
When dividing 10 by 31, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 10789.9
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 9:
If we divide 100 by 31, we get 3 and a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 10789.903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 10:
If we divide 70 by 31, we get 2 and a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 10789.9032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 11:
80 divided by 31 is 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 10789.90322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 10789.90322 with a remainder of 1.8e-05.