We look at the division of 317171 by 21 
We're looking to find how many times 21 goes into 317171.

Step 1:
3 divided by 21 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 21

On to step 2:
31 divided by 21 is 1 with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 21 from 31, we get 10.
Include the next digit (7) from the dividend after 10, then repeat: 107 / 21

Moving on to step 3:
If we divide 107 by 21, we get 5 and a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 15.0
Deduct 105 from 107 and we're left with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 21

Going ahead to step 4:
21 can be fit into 21 1 times, resulting in a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 151.0
The remainder is 0 after subtracting 21 from 21.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 21

Advancing to step 5:
When dividing 7 by 21, we get 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 1510.0
Subtract 0 from 7 to get 7.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 21

Step 6:
When dividing 71 by 21, we get 3 with a remainder of 8.
Use 3 as the next digit of our solution. 
Result so far: 15103.0
Deduct 63 from 71 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
21 can be fit into 80 3 times, resulting in a remainder of 17.
The next digit of our result is 3. 
Result so far: 15103.3
Subtracting 63 from 80 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 8:
170 divided by 21 is 8 with a remainder of 2.
The next digit of our result is 8. 
Result so far: 15103.38
If we subtract 168 from 170, 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.

Moving on to step 9:
If we divide 20 by 21, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 15103.38
Subtracting 0 from 20 leaves us 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.

Going ahead to step 10:
21 goes into 200 9 times with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 15103.3809
Deduct 189 from 200 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 11:
If we divide 110 by 21, we get 5 and a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 15103.38095
Deduct 105 from 110 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.

Going ahead to step 12:
50 divided by 21 is 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 15103.380952
Subtracting 42 from 50 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
21 can be fit into 80 3 times, resulting in a remainder of 17.
The next digit of our result is 3. 
Result so far: 15103.3809523
If we subtract 63 from 80, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 14:
21 can be fit into 170 8 times, resulting in a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 15103.38095238
If we subtract 168 from 170, 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.

The quotient of the division is 15103.38095238, and the remainder is 2e-09.