509340 divided by 12 
The aim is to understand the frequency of 12 in 509340.

Going ahead to step 1:
The number 12 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 12

Moving 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 (9) of the dividend behind the 2 and repeat the process: 29 / 12

Moving on to step 3:
When dividing 29 by 12, we get 2 with a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 42.0
If we subtract 24 from 29, we get 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 12

Step 4:
53 divided by 12 is 4 with a remainder of 5.
Write down 4 as next digit of the result. 
Result so far: 424.0
Deduct 48 from 53 and we're left with 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 12

Advancing to step 5:
If we divide 54 by 12, we get 4 and a remainder of 6.
The next digit of our result is 4. 
Result so far: 4244.0
The remainder is 6 after subtracting 48 from 54.
Append the next digit (0) from the dividend to 6 and continue with: 60 / 12

Step 6:
12 goes into 60 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 42445.0
Subtract 60 from 60 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 7:
The number 12 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 42445.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
If we divide 0 by 12, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 42445.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 42445.0, and the remainder is 0.0.