We're dividing 18676227 by 508 
The aim is to understand the frequency of 508 in 18676227.

Moving on to step 1:
1 divided by 508 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 508

Moving on to step 2:
508 can be fit into 18 0 times, resulting in a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 18, we end up with 18.
Fetch the next digit (6) from the dividend, attach it to 18 and continue: 186 / 508

Moving on to step 3:
If we divide 186 by 508, we get 0 and a remainder of 186.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 186 after subtracting 0 from 186.
Include the next digit (7) from the dividend after 186, then repeat: 1867 / 508

Advancing to step 4:
When dividing 1867 by 508, we get 3 with a remainder of 343.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtract 1524 from 1867 to get 343.
Bring next digit (6) of the dividend behind the 343 and repeat the process: 3436 / 508

Advancing to step 5:
508 goes into 3436 6 times with a remainder of 388.
Use 6 as the next digit of our solution. 
Result so far: 36.0
Subtracting 3048 from 3436 leaves us with 388.
Take the next digit (2) from the dividend and append it to 388, then repeat: 3882 / 508

On to step 6:
When dividing 3882 by 508, we get 7 with a remainder of 326.
Write down 7 as next digit of the result. 
Result so far: 367.0
Subtracting 3556 from 3882 leaves us with 326.
Append the next digit (2) from the dividend to 326 and continue with: 3262 / 508

Step 7:
The number 508 fits into 3262 6 times, leaving a remainder of 214.
Write down 6 as next digit of the result. 
Result so far: 3676.0
Deduct 3048 from 3262 and we're left with 214.
Fetch the next digit (7) from the dividend, attach it to 214 and continue: 2147 / 508

On to step 8:
2147 divided by 508 is 4 with a remainder of 115.
Use 4 as the next digit of our solution. 
Result so far: 36764.0
Subtracting 2032 from 2147 leaves us with 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Advancing to step 9:
1150 divided by 508 is 2 with a remainder of 134.
Use 2 as the next digit of our solution. 
Result so far: 36764.2
If we take 1016 away from 1150, we end up with 134.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

Let's proceed to step 10:
If we divide 1340 by 508, we get 2 and a remainder of 324.
Put 2 as the next digit of the answer. 
Result so far: 36764.22
If we take 1016 away from 1340, we end up with 324.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3240, and continue the process.

After the division, we end up with 36764.22 and a remainder of 0.324.