We look at the division of 861485 by 31 
The aim is to understand the frequency of 31 in 861485.

Moving on to step 1:
31 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 31

Advancing to step 2:
86 divided by 31 is 2 with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 62 from 86, we get 24.
Include the next digit (1) from the dividend after 24, then repeat: 241 / 31

Moving on to step 3:
241 divided by 31 is 7 with a remainder of 24.
Write down 7 as next digit of the result. 
Result so far: 27.0
Subtract 217 from 241 to get 24.
Fetch the next digit (4) from the dividend, attach it to 24 and continue: 244 / 31

Moving on to step 4:
If we divide 244 by 31, we get 7 and a remainder of 27.
Write down 7 as next digit of the result. 
Result so far: 277.0
The remainder is 27 after subtracting 217 from 244.
Append the next digit (8) from the dividend to 27 and continue with: 278 / 31

Going ahead to step 5:
The number 31 fits into 278 8 times, leaving a remainder of 30.
The next digit of our result is 8. 
Result so far: 2778.0
Deduct 248 from 278 and we're left with 30.
Include the next digit (5) from the dividend after 30, then repeat: 305 / 31

Step 6:
When dividing 305 by 31, we get 9 with a remainder of 26.
The number 9 becomes the next digit in our result. 
Result so far: 27789.0
The remainder is 26 after subtracting 279 from 305.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 7:
31 can be fit into 260 8 times, resulting in a remainder of 12.
The next digit of our result is 8. 
Result so far: 27789.8
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 8:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 27789.83
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 9:
31 goes into 270 8 times with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 27789.838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 10:
31 can be fit into 220 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 27789.8387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 11:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 27789.8387
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 12:
If we divide 300 by 31, we get 9 and a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 27789.838709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 13:
31 goes into 210 6 times with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 27789.8387096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 14:
240 divided by 31 is 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 27789.83870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Our division results in 27789.83870967 with a remaining 2.3e-08.