Let's divide 845979 by 31
The aim is to understand the frequency of 31 in 845979.

Advancing to step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Grab the next digit (4) from the dividend, add it to 8, then carry on: 84 / 31

On to step 2:
31 can be fit into 84 2 times, resulting in a remainder of 22.
The next digit of our result is 2. 
Result so far: 2.0
Subtracting 62 from 84 leaves us with 22.
Bring next digit (5) of the dividend behind the 22 and repeat the process: 225 / 31

Let's proceed to step 3:
The number 31 fits into 225 7 times, leaving a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 27.0
Subtract 217 from 225 to get 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 31

Step 4:
31 goes into 89 2 times with a remainder of 27.
The number 2 becomes the next digit in our result. 
Result so far: 272.0
If we subtract 62 from 89, we get 27.
Fetch the next digit (7) from the dividend, attach it to 27 and continue: 277 / 31

Going ahead to step 5:
The number 31 fits into 277 8 times, leaving a remainder of 29.
Record the quotient 8 as the next digit in the result. 
Result so far: 2728.0
Subtract 248 from 277 to get 29.
Bring next digit (9) of the dividend behind the 29 and repeat the process: 299 / 31

Moving on to step 6:
The number 31 fits into 299 9 times, leaving a remainder of 20.
The next digit of our result is 9. 
Result so far: 27289.0
If we subtract 279 from 299, we 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.

Advancing to step 7:
200 divided by 31 is 6 with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 27289.6
Subtract 186 from 200 to 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.

Advancing to step 8:
When dividing 140 by 31, we get 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 27289.64
If we take 124 away from 140, we end up 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.
Record the quotient 5 as the next digit in the result. 
Result so far: 27289.645
Subtract 155 from 160 to get 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:
50 divided by 31 is 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 27289.6451
Subtract 31 from 50 to get 19.
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 11:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 27289.64516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 12:
If we divide 40 by 31, we get 1 and a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 27289.645161
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.

On to step 13:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 27289.6451612
Subtract 62 from 90 to 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.

Going ahead to step 14:
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: 27289.64516129
Subtracting 279 from 280 leaves us 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.

After the division, we end up with 27289.64516129 and a remainder of 1e-09.