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

Let's proceed to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 31

On to step 2:
The number 31 fits into 86 2 times, leaving a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 62 from 86 leaves us with 24.
Fetch the next digit (1) from the dividend, attach it to 24 and continue: 241 / 31

Let's proceed to step 3:
31 can be fit into 241 7 times, resulting in a remainder of 24.
Write down 7 as next digit of the result. 
Result so far: 27.0
Subtracting 217 from 241 leaves us with 24.
Bring next digit (7) of the dividend behind the 24 and repeat the process: 247 / 31

On to step 4:
247 divided by 31 is 7 with a remainder of 30.
Use 7 as the next digit of our solution. 
Result so far: 277.0
If we take 217 away from 247, we end up with 30.
Grab the next digit (5) from the dividend, add it to 30, then carry on: 305 / 31

Let's proceed to step 5:
31 goes into 305 9 times with a remainder of 26.
The number 9 becomes the next digit in our result. 
Result so far: 2779.0
Deduct 279 from 305 and we're left with 26.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 31

On to step 6:
If we divide 267 by 31, we get 8 and a remainder of 19.
The number 8 becomes the next digit in our result. 
Result so far: 27798.0
The remainder is 19 after subtracting 248 from 267.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 7:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 27798.6
If we take 186 away from 190, 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.

On to step 8:
40 divided by 31 is 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 27798.61
If we subtract 31 from 40, 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.

Let's proceed to step 9:
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: 27798.612
If we take 62 away from 90, we end up 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.

Let's proceed to step 10:
If we divide 280 by 31, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 27798.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:
If we divide 10 by 31, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 27798.6129
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.

On to step 12:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 27798.612903
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.

Step 13:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 27798.6129032
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.

Moving on to step 14:
31 goes into 80 2 times with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 27798.61290322
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 outcome is 27798.61290322, with a leftover of 1.8e-08.