We're dividing 14974117 by 504 
The aim is to understand the frequency of 504 in 14974117.

Going ahead to step 1:
1 divided by 504 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 504

On to step 2:
The number 504 fits into 14 0 times, leaving a remainder of 14.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 14, we get 14.
Include the next digit (9) from the dividend after 14, then repeat: 149 / 504

Advancing to step 3:
504 goes into 149 0 times with a remainder of 149.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 149 to get 149.
Fetch the next digit (7) from the dividend, attach it to 149 and continue: 1497 / 504

Let's proceed to step 4:
504 can be fit into 1497 2 times, resulting in a remainder of 489.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 1008 away from 1497, we end up with 489.
Bring next digit (4) of the dividend behind the 489 and repeat the process: 4894 / 504

Step 5:
When dividing 4894 by 504, we get 9 with a remainder of 358.
The next digit of our result is 9. 
Result so far: 29.0
The remainder is 358 after subtracting 4536 from 4894.
Include the next digit (1) from the dividend after 358, then repeat: 3581 / 504

On to step 6:
3581 divided by 504 is 7 with a remainder of 53.
Write down 7 as next digit of the result. 
Result so far: 297.0
Subtracting 3528 from 3581 leaves us with 53.
Take the next digit (1) from the dividend and append it to 53, then repeat: 531 / 504

Let's proceed to step 7:
If we divide 531 by 504, we get 1 and a remainder of 27.
Put 1 as the next digit of the answer. 
Result so far: 2971.0
The remainder is 27 after subtracting 504 from 531.
Grab the next digit (7) from the dividend, add it to 27, then carry on: 277 / 504

Going ahead to step 8:
When dividing 277 by 504, we get 0 with a remainder of 277.
Use 0 as the next digit of our solution. 
Result so far: 29710.0
Deduct 0 from 277 and we're left with 277.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

Moving on to step 9:
The number 504 fits into 2770 5 times, leaving a remainder of 250.
The number 5 becomes the next digit in our result. 
Result so far: 29710.5
Subtract 2520 from 2770 to get 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Going ahead to step 10:
When dividing 2500 by 504, we get 4 with a remainder of 484.
Write down 4 as next digit of the result. 
Result so far: 29710.54
If we take 2016 away from 2500, we end up with 484.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4840, and continue the process.

Let's proceed to step 11:
504 goes into 4840 9 times with a remainder of 304.
The number 9 becomes the next digit in our result. 
Result so far: 29710.549
Deduct 4536 from 4840 and we're left with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Step 12:
The number 504 fits into 3040 6 times, leaving a remainder of 16.
Record the quotient 6 as the next digit in the result. 
Result so far: 29710.5496
Subtracting 3024 from 3040 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 13:
504 goes into 160 0 times with a remainder of 160.
Record the quotient 0 as the next digit in the result. 
Result so far: 29710.5496
The remainder is 160 after subtracting 0 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Advancing to step 14:
When dividing 1600 by 504, we get 3 with a remainder of 88.
Write down 3 as next digit of the result. 
Result so far: 29710.549603
Subtracting 1512 from 1600 leaves us with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

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

Let's proceed to step 16:
504 goes into 3760 7 times with a remainder of 232.
The number 7 becomes the next digit in our result. 
Result so far: 29710.54960317
The remainder is 232 after subtracting 3528 from 3760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

The final outcome is 29710.54960317, with a leftover of 2.32e-07.