87589334 divided by 31 
The aim is to understand the frequency of 31 in 87589334.

Advancing 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
If we take 0 away from 8, we end up with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 31

Going ahead to step 2:
31 can be fit into 87 2 times, resulting in a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 62 from 87 and we're left with 25.
Take the next digit (5) from the dividend and append it to 25, then repeat: 255 / 31

Advancing to step 3:
If we divide 255 by 31, we get 8 and a remainder of 7.
Record the quotient 8 as the next digit in the result. 
Result so far: 28.0
Subtract 248 from 255 to get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 31

Advancing to step 4:
31 goes into 78 2 times with a remainder of 16.
The next digit of our result is 2. 
Result so far: 282.0
If we take 62 away from 78, we end up with 16.
Append the next digit (9) from the dividend to 16 and continue with: 169 / 31

Moving on to step 5:
31 goes into 169 5 times with a remainder of 14.
Put 5 as the next digit of the answer. 
Result so far: 2825.0
Subtracting 155 from 169 leaves us with 14.
Append the next digit (3) from the dividend to 14 and continue with: 143 / 31

Step 6:
When dividing 143 by 31, we get 4 with a remainder of 19.
The next digit of our result is 4. 
Result so far: 28254.0
If we subtract 124 from 143, we get 19.
Fetch the next digit (3) from the dividend, attach it to 19 and continue: 193 / 31

Let's proceed to step 7:
When dividing 193 by 31, we get 6 with a remainder of 7.
The number 6 becomes the next digit in our result. 
Result so far: 282546.0
If we subtract 186 from 193, we get 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 31

On to step 8:
74 divided by 31 is 2 with a remainder of 12.
The next digit of our result is 2. 
Result so far: 2825462.0
If we take 62 away from 74, 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.

Going ahead to step 9:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 2825462.3
If we take 93 away from 120, we end up 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.

On to step 10:
31 goes into 270 8 times with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 2825462.38
Subtract 248 from 270 to 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 11:
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: 2825462.387
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 12:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 2825462.387
If we subtract 0 from 30, we 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 13:
300 divided by 31 is 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 2825462.38709
If we subtract 279 from 300, we get 21.
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 14:
31 goes into 210 6 times with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 2825462.387096
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 15:
31 goes into 240 7 times with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 2825462.3870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 16:
31 goes into 230 7 times with a remainder of 13.
The next digit of our result is 7. 
Result so far: 2825462.38709677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 2825462.38709677, and the remainder is 1.3e-08.