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

Step 1:
8 divided by 31 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 31

Step 2:
31 goes into 87 2 times with a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 87 leaves us with 25.
Take the next digit (3) from the dividend and append it to 25, then repeat: 253 / 31

Going ahead to step 3:
When dividing 253 by 31, we get 8 with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 28.0
Subtracting 248 from 253 leaves us with 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 31

Step 4:
52 divided by 31 is 1 with a remainder of 21.
The number 1 becomes the next digit in our result. 
Result so far: 281.0
If we take 31 away from 52, we end up with 21.
Include the next digit (9) from the dividend after 21, then repeat: 219 / 31

Let's proceed to step 5:
The number 31 fits into 219 7 times, leaving a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 2817.0
The remainder is 2 after subtracting 217 from 219.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 6:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 2817.0
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 7:
If we divide 200 by 31, we get 6 and a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 2817.06
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 8:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 2817.064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 9:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 2817.0645
Subtracting 155 from 160 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 10:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 2817.06451
Deduct 31 from 50 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.

Advancing to step 11:
190 divided by 31 is 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 2817.064516
The remainder is 4 after subtracting 186 from 190.
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 12:
31 goes into 40 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 2817.0645161
Deduct 31 from 40 and we're left 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 13:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 2817.06451612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

In conclusion, the division gives 2817.06451612 with a balance of 2.8e-08.