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

Moving on to step 1:
The number 31 fits into 2 0 times, leaving a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 31

Going ahead to step 2:
When dividing 23 by 31, we get 0 with a remainder of 23.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 23 and we're left with 23.
Append the next digit (8) from the dividend to 23 and continue with: 238 / 31

Moving on to step 3:
The number 31 fits into 238 7 times, leaving a remainder of 21.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 217 from 238 and we're left with 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 31

Let's proceed to step 4:
When dividing 215 by 31, we get 6 with a remainder of 29.
Record the quotient 6 as the next digit in the result. 
Result so far: 76.0
Deduct 186 from 215 and we're left with 29.
Grab the next digit (6) from the dividend, add it to 29, then carry on: 296 / 31

Step 5:
When dividing 296 by 31, we get 9 with a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 769.0
If we subtract 279 from 296, we get 17.
Fetch the next digit (3) from the dividend, attach it to 17 and continue: 173 / 31

Going ahead to step 6:
The number 31 fits into 173 5 times, leaving a remainder of 18.
The next digit of our result is 5. 
Result so far: 7695.0
If we take 155 away from 173, we end up 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.

On to step 7:
If we divide 180 by 31, we get 5 and a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 7695.5
Subtracting 155 from 180 leaves us 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 8:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 7695.58
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
20 divided by 31 is 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 7695.58
If we subtract 0 from 20, we 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.

Let's proceed to step 10:
If we divide 200 by 31, we get 6 and a remainder of 14.
The next digit of our result is 6. 
Result so far: 7695.5806
Subtracting 186 from 200 leaves us 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.

On to step 11:
When dividing 140 by 31, we get 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 7695.58064
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.

Going ahead to step 12:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 7695.580645
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.

On to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 7695.5806451
The remainder is 19 after subtracting 31 from 50.
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 14:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 7695.58064516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 7695.58064516, and the remainder is 4e-09.