5117874 divided by 304 
The aim is to understand the frequency of 304 in 5117874.

Going ahead to step 1:
When dividing 5 by 304, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 304

Step 2:
The number 304 fits into 51 0 times, leaving a remainder of 51.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 51, we get 51.
Bring next digit (1) of the dividend behind the 51 and repeat the process: 511 / 304

Advancing to step 3:
511 divided by 304 is 1 with a remainder of 207.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 304 from 511 and we're left with 207.
Take the next digit (7) from the dividend and append it to 207, then repeat: 2077 / 304

Moving on to step 4:
When dividing 2077 by 304, we get 6 with a remainder of 253.
The next digit of our result is 6. 
Result so far: 16.0
Subtracting 1824 from 2077 leaves us with 253.
Include the next digit (8) from the dividend after 253, then repeat: 2538 / 304

On to step 5:
The number 304 fits into 2538 8 times, leaving a remainder of 106.
The next digit of our result is 8. 
Result so far: 168.0
The remainder is 106 after subtracting 2432 from 2538.
Grab the next digit (7) from the dividend, add it to 106, then carry on: 1067 / 304

Let's proceed to step 6:
The number 304 fits into 1067 3 times, leaving a remainder of 155.
Put 3 as the next digit of the answer. 
Result so far: 1683.0
The remainder is 155 after subtracting 912 from 1067.
Include the next digit (4) from the dividend after 155, then repeat: 1554 / 304

Moving on to step 7:
304 goes into 1554 5 times with a remainder of 34.
The next digit of our result is 5. 
Result so far: 16835.0
If we take 1520 away from 1554, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 8:
The number 304 fits into 340 1 times, leaving a remainder of 36.
The number 1 becomes the next digit in our result. 
Result so far: 16835.1
If we take 304 away from 340, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 9:
If we divide 360 by 304, we get 1 and a remainder of 56.
Write down 1 as next digit of the result. 
Result so far: 16835.11
The remainder is 56 after subtracting 304 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Our division results in 16835.11 with a remaining 0.056.