We're dividing 507508 by 12 
The aim is to understand the frequency of 12 in 507508.

Step 1:
The number 12 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 12

On to step 2:
When dividing 50 by 12, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 4.0
The remainder is 2 after subtracting 48 from 50.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 12

Step 3:
The number 12 fits into 27 2 times, leaving a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 42.0
Subtracting 24 from 27 leaves us with 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 12

Advancing to step 4:
The number 12 fits into 35 2 times, leaving a remainder of 11.
Record the quotient 2 as the next digit in the result. 
Result so far: 422.0
The remainder is 11 after subtracting 24 from 35.
Append the next digit (0) from the dividend to 11 and continue with: 110 / 12

On to step 5:
If we divide 110 by 12, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 4229.0
Subtract 108 from 110 to get 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 12

Step 6:
28 divided by 12 is 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 42292.0
If we subtract 24 from 28, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
If we divide 40 by 12, we get 3 and a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 42292.3
If we subtract 36 from 40, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
12 can be fit into 40 3 times, resulting in a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 42292.33
Deduct 36 from 40 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 42292.33 and a remainder of 0.004.