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

Going ahead to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 31

On to step 2:
If we divide 97 by 31, we get 3 and a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtract 93 from 97 to get 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 31

Let's proceed to step 3:
31 goes into 41 1 times with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
If we subtract 31 from 41, we get 10.
Fetch the next digit (5) from the dividend, attach it to 10 and continue: 105 / 31

On to step 4:
31 can be fit into 105 3 times, resulting in a remainder of 12.
Use 3 as the next digit of our solution. 
Result so far: 313.0
The remainder is 12 after subtracting 93 from 105.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 31

Moving on to step 5:
If we divide 126 by 31, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 3134.0
Deduct 124 from 126 and we're left with 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 31

On to step 6:
27 divided by 31 is 0 with a remainder of 27.
Use 0 as the next digit of our solution. 
Result so far: 31340.0
Deduct 0 from 27 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 31340.8
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 8:
31 goes into 220 7 times with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 31340.87
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 9:
31 goes into 30 0 times with a remainder of 30.
The next digit of our result is 0. 
Result so far: 31340.87
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 31340.8709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 11:
If we divide 210 by 31, we get 6 and a remainder of 24.
The next digit of our result is 6. 
Result so far: 31340.87096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 12:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 31340.870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 13:
When dividing 230 by 31, we get 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 31340.8709677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 31340.8709677 and a remainder of 1.3e-07.