We look at the division of 50180463 by 504 
The aim is to understand the frequency of 504 in 50180463.

Going ahead to step 1:
5 divided by 504 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 504

Going ahead to step 2:
504 can be fit into 50 0 times, resulting in a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Take the next digit (1) from the dividend and append it to 50, then repeat: 501 / 504

Let's proceed to step 3:
504 can be fit into 501 0 times, resulting in a remainder of 501.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 501 leaves us with 501.
Bring next digit (8) of the dividend behind the 501 and repeat the process: 5018 / 504

Let's proceed to step 4:
5018 divided by 504 is 9 with a remainder of 482.
Write down 9 as next digit of the result. 
Result so far: 9.0
Subtract 4536 from 5018 to get 482.
Take the next digit (0) from the dividend and append it to 482, then repeat: 4820 / 504

Let's proceed to step 5:
When dividing 4820 by 504, we get 9 with a remainder of 284.
The next digit of our result is 9. 
Result so far: 99.0
Deduct 4536 from 4820 and we're left with 284.
Take the next digit (4) from the dividend and append it to 284, then repeat: 2844 / 504

Step 6:
2844 divided by 504 is 5 with a remainder of 324.
The number 5 becomes the next digit in our result. 
Result so far: 995.0
If we subtract 2520 from 2844, we get 324.
Bring next digit (6) of the dividend behind the 324 and repeat the process: 3246 / 504

Step 7:
3246 divided by 504 is 6 with a remainder of 222.
The next digit of our result is 6. 
Result so far: 9956.0
If we subtract 3024 from 3246, we get 222.
Take the next digit (3) from the dividend and append it to 222, then repeat: 2223 / 504

Step 8:
The number 504 fits into 2223 4 times, leaving a remainder of 207.
Write down 4 as next digit of the result. 
Result so far: 99564.0
If we take 2016 away from 2223, we end up with 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Step 9:
If we divide 2070 by 504, we get 4 and a remainder of 54.
The number 4 becomes the next digit in our result. 
Result so far: 99564.4
Deduct 2016 from 2070 and we're left with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Let's proceed to step 10:
504 can be fit into 540 1 times, resulting in a remainder of 36.
The number 1 becomes the next digit in our result. 
Result so far: 99564.41
The remainder is 36 after subtracting 504 from 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 11:
504 can be fit into 360 0 times, resulting in a remainder of 360.
The next digit of our result is 0. 
Result so far: 99564.41
Subtracting 0 from 360 leaves us with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Step 12:
The number 504 fits into 3600 7 times, leaving a remainder of 72.
The number 7 becomes the next digit in our result. 
Result so far: 99564.4107
If we subtract 3528 from 3600, we get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 13:
504 goes into 720 1 times with a remainder of 216.
Write down 1 as next digit of the result. 
Result so far: 99564.41071
Subtract 504 from 720 to get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

Moving on to step 14:
504 goes into 2160 4 times with a remainder of 144.
Put 4 as the next digit of the answer. 
Result so far: 99564.410714
Subtract 2016 from 2160 to get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Step 15:
When dividing 1440 by 504, we get 2 with a remainder of 432.
Put 2 as the next digit of the answer. 
Result so far: 99564.4107142
Subtracting 1008 from 1440 leaves us with 432.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4320, and continue the process.

Moving on to step 16:
The number 504 fits into 4320 8 times, leaving a remainder of 288.
The next digit of our result is 8. 
Result so far: 99564.41071428
The remainder is 288 after subtracting 4032 from 4320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

The final result is 99564.41071428 with a remainder of 2.88e-07.