We divide 834942 by 31
The aim is to understand the frequency of 31 in 834942.

Step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (3) from the dividend to 8 and continue with: 83 / 31

Advancing to step 2:
31 can be fit into 83 2 times, resulting in a remainder of 21.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 62 from 83 to get 21.
Include the next digit (4) from the dividend after 21, then repeat: 214 / 31

Let's proceed to step 3:
When dividing 214 by 31, we get 6 with a remainder of 28.
The next digit of our result is 6. 
Result so far: 26.0
If we take 186 away from 214, we end up with 28.
Fetch the next digit (9) from the dividend, attach it to 28 and continue: 289 / 31

Step 4:
31 can be fit into 289 9 times, resulting in a remainder of 10.
Record the quotient 9 as the next digit in the result. 
Result so far: 269.0
If we take 279 away from 289, we end up with 10.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 31

Let's proceed to step 5:
31 can be fit into 104 3 times, resulting in a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 2693.0
If we take 93 away from 104, we end up with 11.
Take the next digit (2) from the dividend and append it to 11, then repeat: 112 / 31

Moving on to step 6:
If we divide 112 by 31, we get 3 and a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 26933.0
Deduct 93 from 112 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 7:
31 goes into 190 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 26933.6
Subtracting 186 from 190 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 26933.61
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 9:
If we divide 90 by 31, we get 2 and a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 26933.612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 10:
280 divided by 31 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 26933.6129
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 11:
31 goes into 10 0 times with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 26933.6129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 12:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 26933.612903
Deduct 93 from 100 and we're left 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.

Step 13:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 26933.6129032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 14:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 26933.61290322
Deduct 62 from 80 and we're left with 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 outcome is 26933.61290322, with a leftover of 1.8e-08.