We look at the division of 897260 by 31 
The aim is to understand the frequency of 31 in 897260.

Moving on to step 1:
The number 31 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Include the next digit (9) from the dividend after 8, then repeat: 89 / 31

Moving on to step 2:
31 goes into 89 2 times with a remainder of 27.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 27 after subtracting 62 from 89.
Bring next digit (7) of the dividend behind the 27 and repeat the process: 277 / 31

On to step 3:
31 can be fit into 277 8 times, resulting in a remainder of 29.
The next digit of our result is 8. 
Result so far: 28.0
Subtracting 248 from 277 leaves us with 29.
Fetch the next digit (2) from the dividend, attach it to 29 and continue: 292 / 31

Advancing to step 4:
31 goes into 292 9 times with a remainder of 13.
The number 9 becomes the next digit in our result. 
Result so far: 289.0
Subtract 279 from 292 to get 13.
Include the next digit (6) from the dividend after 13, then repeat: 136 / 31

Step 5:
The number 31 fits into 136 4 times, leaving a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 2894.0
The remainder is 12 after subtracting 124 from 136.
Grab the next digit (0) from the dividend, add it to 12, then carry on: 120 / 31

Let's proceed to step 6:
When dividing 120 by 31, we get 3 with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 28943.0
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
31 goes into 270 8 times with a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 28943.8
Subtracting 248 from 270 leaves us with 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:
220 divided by 31 is 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 28943.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.

Going ahead to step 9:
30 divided by 31 is 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 28943.87
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 28943.8709
Deduct 279 from 300 and we're left 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:
When dividing 210 by 31, we get 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 28943.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.

Going ahead to step 12:
When dividing 240 by 31, we get 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 28943.870967
The remainder is 23 after subtracting 217 from 240.
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:
31 goes into 230 7 times with a remainder of 13.
The next digit of our result is 7. 
Result so far: 28943.8709677
If we take 217 away from 230, we end up 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.

The quotient of the division is 28943.8709677, and the remainder is 1.3e-07.