97716 ÷ 31 
The aim is to understand the frequency of 31 in 97716.

Advancing to step 1:
9 divided by 31 is 0 with a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 31

On to step 2:
31 can be fit into 97 3 times, resulting in a remainder of 4.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 93 from 97 leaves us with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 31

Advancing to step 3:
31 goes into 47 1 times with a remainder of 16.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtract 31 from 47 to get 16.
Take the next digit (1) from the dividend and append it to 16, then repeat: 161 / 31

Going ahead to step 4:
31 goes into 161 5 times with a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 315.0
If we subtract 155 from 161, we get 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 31

On to step 5:
The number 31 fits into 66 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 3152.0
Subtract 62 from 66 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.

Advancing to step 6:
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: 3152.1
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.

On to step 7:
If we divide 90 by 31, we get 2 and a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 3152.12
If we take 62 away from 90, we end up 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:
If we divide 280 by 31, we get 9 and a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 3152.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.

Step 9:
31 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 3152.129
Subtract 0 from 10 to 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.

Going ahead to step 10:
If we divide 100 by 31, we get 3 and a remainder of 7.
The next digit of our result is 3. 
Result so far: 3152.12903
Deduct 93 from 100 and we're left with 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:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 3152.129032
Subtract 62 from 70 to 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:
80 divided by 31 is 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 3152.1290322
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.

The final outcome is 3152.1290322, with a leftover of 1.8e-07.