We look at the division of 523821 by 31 
Let's see how many times 31 fits into 523821.

Moving on to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 31

Let's proceed to step 2:
When dividing 52 by 31, we get 1 with a remainder of 21.
The next digit of our result is 1. 
Result so far: 1.0
If we take 31 away from 52, we end up with 21.
Take the next digit (3) from the dividend and append it to 21, then repeat: 213 / 31

Advancing to step 3:
31 goes into 213 6 times with a remainder of 27.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
If we subtract 186 from 213, we get 27.
Grab the next digit (8) from the dividend, add it to 27, then carry on: 278 / 31

Let's proceed to step 4:
278 divided by 31 is 8 with a remainder of 30.
Put 8 as the next digit of the answer. 
Result so far: 168.0
If we take 248 away from 278, we end up with 30.
Fetch the next digit (2) from the dividend, attach it to 30 and continue: 302 / 31

Step 5:
302 divided by 31 is 9 with a remainder of 23.
The number 9 becomes the next digit in our result. 
Result so far: 1689.0
Subtracting 279 from 302 leaves us with 23.
Take the next digit (1) from the dividend and append it to 23, then repeat: 231 / 31

Advancing to step 6:
31 goes into 231 7 times with a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 16897.0
Subtract 217 from 231 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.

Going ahead to step 7:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 16897.4
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:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 16897.45
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 9:
50 divided by 31 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 16897.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:
190 divided by 31 is 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16897.4516
If we take 186 away from 190, we end up 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.

On to step 11:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 16897.45161
If we subtract 31 from 40, we 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.

Going ahead to step 12:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 16897.451612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 13:
If we divide 280 by 31, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 16897.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.

Let's proceed to step 14:
31 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 16897.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 16897.4516129, with a leftover of 1e-08.