Let's divide 317918 by 12
The aim is to understand the frequency of 12 in 317918.

On to step 1:
12 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 12

Advancing to step 2:
12 goes into 31 2 times with a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 24 from 31 and we're left with 7.
Fetch the next digit (7) from the dividend, attach it to 7 and continue: 77 / 12

Moving on to step 3:
If we divide 77 by 12, we get 6 and a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
Subtract 72 from 77 to get 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 12

Going ahead to step 4:
59 divided by 12 is 4 with a remainder of 11.
Write down 4 as next digit of the result. 
Result so far: 264.0
Subtract 48 from 59 to get 11.
Append the next digit (1) from the dividend to 11 and continue with: 111 / 12

On to step 5:
The number 12 fits into 111 9 times, leaving a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 2649.0
Subtracting 108 from 111 leaves us with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 12

Let's proceed to step 6:
When dividing 38 by 12, we get 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 26493.0
Deduct 36 from 38 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
12 can be fit into 20 1 times, resulting in a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 26493.1
If we subtract 12 from 20, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 8:
If we divide 80 by 12, we get 6 and a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 26493.16
Deduct 72 from 80 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 9:
When dividing 80 by 12, we get 6 with a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 26493.166
If we subtract 72 from 80, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 26493.166 with a balance of 0.0008.