173788 divided by 31 
The aim is to understand the frequency of 31 in 173788.

Going ahead to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 31

Advancing to step 2:
The number 31 fits into 17 0 times, leaving a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 17, we get 17.
Include the next digit (3) from the dividend after 17, then repeat: 173 / 31

Advancing to step 3:
31 can be fit into 173 5 times, resulting in a remainder of 18.
The next digit of our result is 5. 
Result so far: 5.0
If we subtract 155 from 173, we get 18.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 31

On to step 4:
If we divide 187 by 31, we get 6 and a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 56.0
If we take 186 away from 187, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 31

Let's proceed to step 5:
The number 31 fits into 18 0 times, leaving a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 560.0
Deduct 0 from 18 and we're left with 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 31

Step 6:
If we divide 188 by 31, we get 6 and a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 5606.0
If we subtract 186 from 188, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
20 divided by 31 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 5606.0
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
If we divide 200 by 31, we get 6 and a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 5606.06
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 9:
If we divide 140 by 31, we get 4 and a remainder of 16.
The next digit of our result is 4. 
Result so far: 5606.064
If we subtract 124 from 140, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 10:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 5606.0645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 11:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 5606.06451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 12:
When dividing 190 by 31, we get 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 5606.064516
If we subtract 186 from 190, we 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.

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

Going ahead to step 14:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 5606.06451612
Deduct 62 from 90 and we're left 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.

The quotient of the division is 5606.06451612, and the remainder is 2.8e-08.