10171894 divided by 504 
The aim is to understand the frequency of 504 in 10171894.

Let's proceed to step 1:
504 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 504

Moving on to step 2:
When dividing 10 by 504, we get 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 10, we end up with 10.
Take the next digit (1) from the dividend and append it to 10, then repeat: 101 / 504

Advancing to step 3:
The number 504 fits into 101 0 times, leaving a remainder of 101.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 101 after subtracting 0 from 101.
Append the next digit (7) from the dividend to 101 and continue with: 1017 / 504

Let's proceed to step 4:
When dividing 1017 by 504, we get 2 with a remainder of 9.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 1008 from 1017, we get 9.
Grab the next digit (1) from the dividend, add it to 9, then carry on: 91 / 504

Let's proceed to step 5:
91 divided by 504 is 0 with a remainder of 91.
Put 0 as the next digit of the answer. 
Result so far: 20.0
The remainder is 91 after subtracting 0 from 91.
Take the next digit (8) from the dividend and append it to 91, then repeat: 918 / 504

Advancing to step 6:
If we divide 918 by 504, we get 1 and a remainder of 414.
The next digit of our result is 1. 
Result so far: 201.0
Subtracting 504 from 918 leaves us with 414.
Fetch the next digit (9) from the dividend, attach it to 414 and continue: 4149 / 504

Step 7:
504 can be fit into 4149 8 times, resulting in a remainder of 117.
Write down 8 as next digit of the result. 
Result so far: 2018.0
If we take 4032 away from 4149, we end up with 117.
Fetch the next digit (4) from the dividend, attach it to 117 and continue: 1174 / 504

Going ahead to step 8:
If we divide 1174 by 504, we get 2 and a remainder of 166.
Record the quotient 2 as the next digit in the result. 
Result so far: 20182.0
If we take 1008 away from 1174, we end up with 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

Moving on to step 9:
If we divide 1660 by 504, we get 3 and a remainder of 148.
Write down 3 as next digit of the result. 
Result so far: 20182.3
Deduct 1512 from 1660 and we're left with 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Moving on to step 10:
When dividing 1480 by 504, we get 2 with a remainder of 472.
The next digit of our result is 2. 
Result so far: 20182.32
The remainder is 472 after subtracting 1008 from 1480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4720, and continue the process.

Step 11:
504 goes into 4720 9 times with a remainder of 184.
Put 9 as the next digit of the answer. 
Result so far: 20182.329
Subtracting 4536 from 4720 leaves us with 184.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

Step 12:
The number 504 fits into 1840 3 times, leaving a remainder of 328.
Record the quotient 3 as the next digit in the result. 
Result so far: 20182.3293
The remainder is 328 after subtracting 1512 from 1840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

Going ahead to step 13:
504 can be fit into 3280 6 times, resulting in a remainder of 256.
Use 6 as the next digit of our solution. 
Result so far: 20182.32936
If we take 3024 away from 3280, we end up with 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

Advancing to step 14:
If we divide 2560 by 504, we get 5 and a remainder of 40.
Record the quotient 5 as the next digit in the result. 
Result so far: 20182.329365
Subtracting 2520 from 2560 leaves us 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.

Moving on to step 15:
504 goes into 400 0 times with a remainder of 400.
Use 0 as the next digit of our solution. 
Result so far: 20182.329365
The remainder is 400 after subtracting 0 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

Advancing to step 16:
4000 divided by 504 is 7 with a remainder of 472.
Write down 7 as next digit of the result. 
Result so far: 20182.32936507
Deduct 3528 from 4000 and we're left with 472.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4720, and continue the process.

The final outcome is 20182.32936507, with a leftover of 4.72e-07.