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

Moving on to step 1:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 31

Moving on to step 2:
When dividing 78 by 31, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 62 from 78 leaves us with 16.
Grab the next digit (1) from the dividend, add it to 16, then carry on: 161 / 31

Step 3:
If we divide 161 by 31, we get 5 and a remainder of 6.
The next digit of our result is 5. 
Result so far: 25.0
Subtract 155 from 161 to get 6.
Append the next digit (7) from the dividend to 6 and continue with: 67 / 31

Going ahead to step 4:
67 divided by 31 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 252.0
Subtracting 62 from 67 leaves us with 5.
Append the next digit (6) from the dividend to 5 and continue with: 56 / 31

Going ahead to step 5:
When dividing 56 by 31, we get 1 with a remainder of 25.
The number 1 becomes the next digit in our result. 
Result so far: 2521.0
Deduct 31 from 56 and we're left with 25.
Bring next digit (9) of the dividend behind the 25 and repeat the process: 259 / 31

Let's proceed to step 6:
When dividing 259 by 31, we get 8 with a remainder of 11.
The next digit of our result is 8. 
Result so far: 25218.0
Subtracting 248 from 259 leaves us 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.

Step 7:
When dividing 110 by 31, we get 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 25218.3
Deduct 93 from 110 and we're left with 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.
Write down 5 as next digit of the result. 
Result so far: 25218.35
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 9:
31 goes into 150 4 times with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 25218.354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 10:
When dividing 260 by 31, we get 8 with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 25218.3548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 11:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 25218.35483
If we subtract 93 from 120, we 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.

Let's proceed to step 12:
270 divided by 31 is 8 with a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 25218.354838
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.

Going ahead to step 13:
31 can be fit into 220 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 25218.3548387
If we take 217 away from 220, we end up 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.

Step 14:
When dividing 30 by 31, we get 0 with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 25218.3548387
Subtracting 0 from 30 leaves us 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.

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