We divide 977408 by 31
The aim is to understand the frequency of 31 in 977408.

On to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 31

Moving on to step 2:
31 goes into 97 3 times with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtracting 93 from 97 leaves us with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 31

Step 3:
When dividing 47 by 31, we get 1 with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 31.0
Deduct 31 from 47 and we're left with 16.
Take the next digit (4) from the dividend and append it to 16, then repeat: 164 / 31

On to step 4:
When dividing 164 by 31, we get 5 with a remainder of 9.
Write down 5 as next digit of the result. 
Result so far: 315.0
The remainder is 9 after subtracting 155 from 164.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 31

Advancing to step 5:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 3152.0
Deduct 62 from 90 and we're left with 28.
Grab the next digit (8) from the dividend, add it to 28, then carry on: 288 / 31

Going ahead to step 6:
If we divide 288 by 31, we get 9 and a remainder of 9.
Record the quotient 9 as the next digit in the result. 
Result so far: 31529.0
The remainder is 9 after subtracting 279 from 288.
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 7:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The next digit of our result is 2. 
Result so far: 31529.2
Subtracting 62 from 90 leaves us 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.

Let's proceed to step 8:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 31529.29
If we take 279 away from 280, we end up 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.

Let's proceed to step 9:
10 divided by 31 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 31529.29
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 10:
100 divided by 31 is 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 31529.2903
Subtract 93 from 100 to 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.

Advancing to step 11:
If we divide 70 by 31, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 31529.29032
If we subtract 62 from 70, we get 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 12:
When dividing 80 by 31, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 31529.290322
Deduct 62 from 80 and we're left 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 31529.290322 with a remaining 1.8e-06.