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

Going ahead to step 1:
31 can be fit into 8 0 times, resulting in a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 31

Step 2:
If we divide 82 by 31, we get 2 and a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 62 from 82 and we're left with 20.
Fetch the next digit (1) from the dividend, attach it to 20 and continue: 201 / 31

On to step 3:
When dividing 201 by 31, we get 6 with a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
Subtract 186 from 201 to get 15.
Append the next digit (6) from the dividend to 15 and continue with: 156 / 31

Going ahead to step 4:
31 goes into 156 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 265.0
Deduct 155 from 156 and we're left with 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 31

Step 5:
31 can be fit into 19 0 times, resulting in a remainder of 19.
Put 0 as the next digit of the answer. 
Result so far: 2650.0
If we subtract 0 from 19, we get 19.
Fetch the next digit (7) from the dividend, attach it to 19 and continue: 197 / 31

Going ahead to step 6:
If we divide 197 by 31, we get 6 and a remainder of 11.
Put 6 as the next digit of the answer. 
Result so far: 26506.0
If we take 186 away from 197, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 7:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 26506.3
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 8:
When dividing 170 by 31, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 26506.35
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 26506.354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 10:
31 can be fit into 260 8 times, resulting in a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 26506.3548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 11:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 26506.35483
If we take 93 away from 120, we end up 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.

Moving on to step 12:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 26506.354838
Subtract 248 from 270 to 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.

Step 13:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 26506.3548387
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 14:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 26506.3548387
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.

The final result is 26506.3548387 with a remainder of 3e-08.