Let's divide 687036 by 31
The aim is to understand the frequency of 31 in 687036.

Moving on to step 1:
The number 31 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 31

Advancing to step 2:
If we divide 68 by 31, we get 2 and a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 62 from 68, we get 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Let's proceed to step 3:
When dividing 67 by 31, we get 2 with a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 22.0
Subtracting 62 from 67 leaves us with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 31

On to step 4:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 221.0
Subtract 31 from 50 to get 19.
Grab the next digit (3) from the dividend, add it to 19, then carry on: 193 / 31

Advancing to step 5:
193 divided by 31 is 6 with a remainder of 7.
Write down 6 as next digit of the result. 
Result so far: 2216.0
If we subtract 186 from 193, we get 7.
Fetch the next digit (6) from the dividend, attach it to 7 and continue: 76 / 31

On to step 6:
31 goes into 76 2 times with a remainder of 14.
The next digit of our result is 2. 
Result so far: 22162.0
Deduct 62 from 76 and we're left with 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 7:
140 divided by 31 is 4 with a remainder of 16.
The next digit of our result is 4. 
Result so far: 22162.4
Subtract 124 from 140 to 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 8:
160 divided by 31 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 22162.45
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
If we divide 50 by 31, we get 1 and a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 22162.451
If we subtract 31 from 50, we get 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 10:
If we divide 190 by 31, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 22162.4516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 11:
40 divided by 31 is 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 22162.45161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 12:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 22162.451612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 13:
If we divide 280 by 31, we get 9 and a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 22162.4516129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 14:
If we divide 10 by 31, we get 0 and a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 22162.4516129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 22162.4516129, with a leftover of 1e-08.