21317567 divided by 504 
We're looking to find how many times 504 goes into 21317567.

On to step 1:
The number 504 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
Subtract 0 from 2 to get 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 504

Let's proceed to step 2:
If we divide 21 by 504, we get 0 and a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 21 leaves us with 21.
Fetch the next digit (3) from the dividend, attach it to 21 and continue: 213 / 504

Let's proceed to step 3:
When dividing 213 by 504, we get 0 with a remainder of 213.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 213 and we're left with 213.
Include the next digit (1) from the dividend after 213, then repeat: 2131 / 504

Going ahead to step 4:
504 can be fit into 2131 4 times, resulting in a remainder of 115.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtract 2016 from 2131 to get 115.
Take the next digit (7) from the dividend and append it to 115, then repeat: 1157 / 504

Going ahead to step 5:
504 goes into 1157 2 times with a remainder of 149.
Record the quotient 2 as the next digit in the result. 
Result so far: 42.0
If we take 1008 away from 1157, we end up with 149.
Take the next digit (5) from the dividend and append it to 149, then repeat: 1495 / 504

Going ahead to step 6:
1495 divided by 504 is 2 with a remainder of 487.
The next digit of our result is 2. 
Result so far: 422.0
The remainder is 487 after subtracting 1008 from 1495.
Fetch the next digit (6) from the dividend, attach it to 487 and continue: 4876 / 504

Let's proceed to step 7:
504 can be fit into 4876 9 times, resulting in a remainder of 340.
Put 9 as the next digit of the answer. 
Result so far: 4229.0
If we subtract 4536 from 4876, we get 340.
Take the next digit (7) from the dividend and append it to 340, then repeat: 3407 / 504

Going ahead to step 8:
The number 504 fits into 3407 6 times, leaving a remainder of 383.
Record the quotient 6 as the next digit in the result. 
Result so far: 42296.0
The remainder is 383 after subtracting 3024 from 3407.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3830, and continue the process.

Advancing to step 9:
504 can be fit into 3830 7 times, resulting in a remainder of 302.
The number 7 becomes the next digit in our result. 
Result so far: 42296.7
If we take 3528 away from 3830, we end up with 302.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

Step 10:
When dividing 3020 by 504, we get 5 with a remainder of 500.
The number 5 becomes the next digit in our result. 
Result so far: 42296.75
If we subtract 2520 from 3020, we get 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Advancing to step 11:
504 goes into 5000 9 times with a remainder of 464.
Use 9 as the next digit of our solution. 
Result so far: 42296.759
If we subtract 4536 from 5000, we get 464.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4640, and continue the process.

Let's proceed to step 12:
When dividing 4640 by 504, we get 9 with a remainder of 104.
Write down 9 as next digit of the result. 
Result so far: 42296.7599
The remainder is 104 after subtracting 4536 from 4640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

In conclusion, the division gives 42296.7599 with a balance of 0.00104.