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

On to step 1:
4 divided by 31 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 31

On to step 2:
31 goes into 49 1 times with a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 31 from 49 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 3:
31 can be fit into 180 5 times, resulting in a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 1.5
Deduct 155 from 180 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 4:
If we divide 250 by 31, we get 8 and a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 1.58
If we subtract 248 from 250, 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.

Advancing to step 5:
If we divide 20 by 31, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 1.58
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 6:
200 divided by 31 is 6 with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 1.5806
If we take 186 away from 200, we end up 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:
When dividing 140 by 31, we get 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 1.58064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 8:
When dividing 160 by 31, we get 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 1.580645
Subtracting 155 from 160 leaves us 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.

Going ahead to step 9:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1.5806451
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.

Moving on to step 10:
When dividing 190 by 31, we get 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 1.58064516
Subtracting 186 from 190 leaves us 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.

After the division, we end up with 1.58064516 and a remainder of 4e-09.