We're dividing 836167 by 31 
The aim is to understand the frequency of 31 in 836167.

Let's proceed to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Bring next digit (3) of the dividend behind the 8 and repeat the process: 83 / 31

Step 2:
The number 31 fits into 83 2 times, leaving a remainder of 21.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 62 from 83 to get 21.
Append the next digit (6) from the dividend to 21 and continue with: 216 / 31

Advancing to step 3:
31 can be fit into 216 6 times, resulting in a remainder of 30.
Put 6 as the next digit of the answer. 
Result so far: 26.0
Subtracting 186 from 216 leaves us with 30.
Include the next digit (1) from the dividend after 30, then repeat: 301 / 31

On to step 4:
The number 31 fits into 301 9 times, leaving a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 269.0
Subtract 279 from 301 to get 22.
Take the next digit (6) from the dividend and append it to 22, then repeat: 226 / 31

Let's proceed to step 5:
When dividing 226 by 31, we get 7 with a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 2697.0
Deduct 217 from 226 and we're left with 9.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 31

Moving on to step 6:
31 can be fit into 97 3 times, resulting in a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 26973.0
If we take 93 away from 97, we end up 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.

Going ahead to step 7:
31 goes into 40 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 26973.1
If we take 31 away from 40, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 8:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 26973.12
Deduct 62 from 90 and we're left 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.

Step 9:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 26973.129
If we subtract 279 from 280, we get 1.
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 10:
10 divided by 31 is 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 26973.129
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.

Moving on to step 11:
When dividing 100 by 31, we get 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 26973.12903
If we subtract 93 from 100, we 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.

Going ahead to step 12:
31 goes into 70 2 times with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 26973.129032
The remainder is 8 after subtracting 62 from 70.
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 13:
31 goes into 80 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 26973.1290322
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.

Our division results in 26973.1290322 with a remaining 1.8e-07.