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

Step 1:
31 goes into 7 0 times with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 31

Moving on to step 2:
If we divide 78 by 31, we get 2 and a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 62 away from 78, we end up with 16.
Take the next digit (9) from the dividend and append it to 16, then repeat: 169 / 31

Step 3:
31 goes into 169 5 times with a remainder of 14.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
If we take 155 away from 169, we end up with 14.
Bring next digit (5) of the dividend behind the 14 and repeat the process: 145 / 31

Let's proceed to step 4:
31 can be fit into 145 4 times, resulting in a remainder of 21.
Use 4 as the next digit of our solution. 
Result so far: 254.0
If we take 124 away from 145, we end up with 21.
Grab the next digit (5) from the dividend, add it to 21, then carry on: 215 / 31

Moving on to step 5:
215 divided by 31 is 6 with a remainder of 29.
The number 6 becomes the next digit in our result. 
Result so far: 2546.0
Subtracting 186 from 215 leaves us with 29.
Include the next digit (9) from the dividend after 29, then repeat: 299 / 31

Step 6:
When dividing 299 by 31, we get 9 with a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 25469.0
Subtract 279 from 299 to get 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:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 25469.6
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 25469.64
Deduct 124 from 140 and we're left with 16.
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:
160 divided by 31 is 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 25469.645
Deduct 155 from 160 and we're left 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.

On to step 10:
31 goes into 50 1 times with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 25469.6451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 25469.64516
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:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 25469.645161
Subtract 31 from 40 to 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.

Advancing to step 13:
31 goes into 90 2 times with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 25469.6451612
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.

Going ahead to step 14:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 25469.64516129
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.

In conclusion, the division gives 25469.64516129 with a balance of 1e-09.