Let's divide 21045 by 31
Our goal is to divide 21045 by 31.

Step 1:
2 divided by 31 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 31

Moving on to step 2:
31 can be fit into 21 0 times, resulting in a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 21, we end up with 21.
Grab the next digit (0) from the dividend, add it to 21, then carry on: 210 / 31

Let's proceed to step 3:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 186 from 210 and we're left with 24.
Take the next digit (4) from the dividend and append it to 24, then repeat: 244 / 31

Going ahead to step 4:
The number 31 fits into 244 7 times, leaving a remainder of 27.
The next digit of our result is 7. 
Result so far: 67.0
If we take 217 away from 244, we end up with 27.
Include the next digit (5) from the dividend after 27, then repeat: 275 / 31

Going ahead to step 5:
The number 31 fits into 275 8 times, leaving a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 678.0
Subtract 248 from 275 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 6:
270 divided by 31 is 8 with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 678.8
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 678.87
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 8:
If we divide 30 by 31, we get 0 and a remainder of 30.
The next digit of our result is 0. 
Result so far: 678.87
If we take 0 away from 30, we end up 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.

Step 9:
31 goes into 300 9 times with a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 678.8709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 10:
31 goes into 210 6 times with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 678.87096
Deduct 186 from 210 and we're left with 24.
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 11:
240 divided by 31 is 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 678.870967
Deduct 217 from 240 and we're left 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.

Advancing to step 12:
If we divide 230 by 31, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 678.8709677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 678.8709677 with a remainder of 1.3e-07.