We divide 15937 by 31
The aim is to understand the frequency of 31 in 15937.

Moving on to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 31

Going ahead to step 2:
When dividing 15 by 31, we get 0 with a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Append the next digit (9) from the dividend to 15 and continue with: 159 / 31

Going ahead to step 3:
The number 31 fits into 159 5 times, leaving a remainder of 4.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtract 155 from 159 to get 4.
Fetch the next digit (3) from the dividend, attach it to 4 and continue: 43 / 31

Advancing to step 4:
31 goes into 43 1 times with a remainder of 12.
The next digit of our result is 1. 
Result so far: 51.0
The remainder is 12 after subtracting 31 from 43.
Bring next digit (7) of the dividend behind the 12 and repeat the process: 127 / 31

Going ahead to step 5:
31 goes into 127 4 times with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 514.0
Deduct 124 from 127 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 6:
31 goes into 30 0 times with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 514.0
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.

Advancing to step 7:
When dividing 300 by 31, we get 9 with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 514.09
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 8:
210 divided by 31 is 6 with a remainder of 24.
The next digit of our result is 6. 
Result so far: 514.096
The remainder is 24 after subtracting 186 from 210.
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 9:
240 divided by 31 is 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 514.0967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 10:
The number 31 fits into 230 7 times, leaving a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 514.09677
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 514.09677, and the remainder is 1.3e-05.