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

Advancing to step 1:
504 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 504

Going ahead to step 2:
The number 504 fits into 51 0 times, leaving a remainder of 51.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 51, we get 51.
Take the next digit (1) from the dividend and append it to 51, then repeat: 511 / 504

Going ahead to step 3:
504 goes into 511 1 times with a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 504 away from 511, we end up with 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 504

Let's proceed to step 4:
77 divided by 504 is 0 with a remainder of 77.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
The remainder is 77 after subtracting 0 from 77.
Take the next digit (6) from the dividend and append it to 77, then repeat: 776 / 504

Moving on to step 5:
504 can be fit into 776 1 times, resulting in a remainder of 272.
The next digit of our result is 1. 
Result so far: 101.0
Subtract 504 from 776 to get 272.
Grab the next digit (3) from the dividend, add it to 272, then carry on: 2723 / 504

Step 6:
504 can be fit into 2723 5 times, resulting in a remainder of 203.
Record the quotient 5 as the next digit in the result. 
Result so far: 1015.0
If we subtract 2520 from 2723, we get 203.
Bring next digit (3) of the dividend behind the 203 and repeat the process: 2033 / 504

Let's proceed to step 7:
504 goes into 2033 4 times with a remainder of 17.
Use 4 as the next digit of our solution. 
Result so far: 10154.0
Deduct 2016 from 2033 and we're left 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.

On to step 8:
The number 504 fits into 170 0 times, leaving a remainder of 170.
The next digit of our result is 0. 
Result so far: 10154.0
Subtract 0 from 170 to get 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Let's proceed to step 9:
504 goes into 1700 3 times with a remainder of 188.
Write down 3 as next digit of the result. 
Result so far: 10154.03
Deduct 1512 from 1700 and we're left with 188.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1880, and continue the process.

Going ahead to step 10:
When dividing 1880 by 504, we get 3 with a remainder of 368.
Record the quotient 3 as the next digit in the result. 
Result so far: 10154.033
If we subtract 1512 from 1880, we get 368.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3680, and continue the process.

The final result is 10154.033 with a remainder of 0.0368.