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

Going ahead to step 1:
8 divided by 31 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (2) from the dividend after 8, then repeat: 82 / 31

On to step 2:
31 can be fit into 82 2 times, resulting in a remainder of 20.
The next digit of our result is 2. 
Result so far: 2.0
If we take 62 away from 82, we end up with 20.
Fetch the next digit (9) from the dividend, attach it to 20 and continue: 209 / 31

Going ahead to step 3:
31 can be fit into 209 6 times, resulting in a remainder of 23.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
Deduct 186 from 209 and we're left with 23.
Include the next digit (1) from the dividend after 23, then repeat: 231 / 31

Moving on to step 4:
31 goes into 231 7 times with a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 267.0
If we take 217 away from 231, we end up with 14.
Grab the next digit (6) from the dividend, add it to 14, then carry on: 146 / 31

Let's proceed to step 5:
The number 31 fits into 146 4 times, leaving a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 2674.0
Subtract 124 from 146 to get 22.
Include the next digit (6) from the dividend after 22, then repeat: 226 / 31

Going ahead to step 6:
When dividing 226 by 31, we get 7 with a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 26747.0
If we subtract 217 from 226, we 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.

Step 7:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 26747.2
Subtracting 62 from 90 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 8:
31 goes into 280 9 times with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 26747.29
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.

Going ahead to step 9:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 26747.29
Subtract 0 from 10 to 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.

Let's proceed to step 10:
100 divided by 31 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 26747.2903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 11:
If we divide 70 by 31, we get 2 and a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 26747.29032
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.

Going ahead to step 12:
31 goes into 80 2 times with a remainder of 18.
The next digit of our result is 2. 
Result so far: 26747.290322
Subtracting 62 from 80 leaves us 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 26747.290322, with a leftover of 1.8e-06.