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

Let's proceed to step 1:
504 goes into 8 0 times with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 504

Advancing to step 2:
504 can be fit into 84 0 times, resulting in a remainder of 84.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 84 leaves us with 84.
Take the next digit (2) from the dividend and append it to 84, then repeat: 842 / 504

On to step 3:
If we divide 842 by 504, we get 1 and a remainder of 338.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 504 from 842 to get 338.
Take the next digit (2) from the dividend and append it to 338, then repeat: 3382 / 504

Advancing to step 4:
When dividing 3382 by 504, we get 6 with a remainder of 358.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Deduct 3024 from 3382 and we're left with 358.
Fetch the next digit (1) from the dividend, attach it to 358 and continue: 3581 / 504

Step 5:
504 goes into 3581 7 times with a remainder of 53.
Record the quotient 7 as the next digit in the result. 
Result so far: 167.0
If we take 3528 away from 3581, we end up with 53.
Take the next digit (6) from the dividend and append it to 53, then repeat: 536 / 504

Moving on to step 6:
504 goes into 536 1 times with a remainder of 32.
The next digit of our result is 1. 
Result so far: 1671.0
If we take 504 away from 536, we end up with 32.
Take the next digit (7) from the dividend and append it to 32, then repeat: 327 / 504

Advancing to step 7:
When dividing 327 by 504, we get 0 with a remainder of 327.
The next digit of our result is 0. 
Result so far: 16710.0
The remainder is 327 after subtracting 0 from 327.
Include the next digit (1) from the dividend after 327, then repeat: 3271 / 504

Going ahead to step 8:
3271 divided by 504 is 6 with a remainder of 247.
Use 6 as the next digit of our solution. 
Result so far: 167106.0
If we take 3024 away from 3271, we end up with 247.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2470, and continue the process.

Step 9:
504 goes into 2470 4 times with a remainder of 454.
The number 4 becomes the next digit in our result. 
Result so far: 167106.4
Subtract 2016 from 2470 to get 454.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

Step 10:
The number 504 fits into 4540 9 times, leaving a remainder of 4.
The next digit of our result is 9. 
Result so far: 167106.49
If we take 4536 away from 4540, 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:
If we divide 40 by 504, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 167106.49
If we take 0 away from 40, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 12:
When dividing 400 by 504, we get 0 with a remainder of 400.
Use 0 as the next digit of our solution. 
Result so far: 167106.49
Deduct 0 from 400 and we're left with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

The final result is 167106.49 with a remainder of 0.004.