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

Advancing to step 1:
31 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Append the next digit (7) from the dividend to 9 and continue with: 97 / 31

Advancing to step 2:
31 goes into 97 3 times with a remainder of 4.
The next digit of our result is 3. 
Result so far: 3.0
If we take 93 away from 97, we end up with 4.
Fetch the next digit (8) from the dividend, attach it to 4 and continue: 48 / 31

On to step 3:
If we divide 48 by 31, we get 1 and a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
Subtracting 31 from 48 leaves us with 17.
Grab the next digit (5) from the dividend, add it to 17, then carry on: 175 / 31

On to step 4:
The number 31 fits into 175 5 times, leaving a remainder of 20.
The next digit of our result is 5. 
Result so far: 315.0
The remainder is 20 after subtracting 155 from 175.
Grab the next digit (1) from the dividend, add it to 20, then carry on: 201 / 31

Advancing to step 5:
The number 31 fits into 201 6 times, leaving a remainder of 15.
Write down 6 as next digit of the result. 
Result so far: 3156.0
The remainder is 15 after subtracting 186 from 201.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 31

Step 6:
159 divided by 31 is 5 with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 31565.0
Deduct 155 from 159 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The next digit of our result is 1. 
Result so far: 31565.1
If we take 31 away from 40, we end up 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 8:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 31565.12
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 9:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 31565.129
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.

Let's proceed to step 10:
10 divided by 31 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 31565.129
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 11:
31 goes into 100 3 times with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 31565.12903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 12:
The number 31 fits into 70 2 times, leaving a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 31565.129032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
31 goes into 80 2 times with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 31565.1290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 31565.1290322 with a remaining 1.8e-07.