We're dividing 142487 by 6 
The aim is to understand the frequency of 6 in 142487.

Going ahead to step 1:
When dividing 1 by 6, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 6

On to step 2:
14 divided by 6 is 2 with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 2 after subtracting 12 from 14.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 6

Step 3:
6 can be fit into 22 3 times, resulting in a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
Subtract 18 from 22 to get 4.
Append the next digit (4) from the dividend to 4 and continue with: 44 / 6

Step 4:
The number 6 fits into 44 7 times, leaving a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 237.0
If we take 42 away from 44, we end up with 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 6

Going ahead to step 5:
6 can be fit into 28 4 times, resulting in a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 2374.0
Deduct 24 from 28 and we're left with 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 6

Advancing to step 6:
47 divided by 6 is 7 with a remainder of 5.
Put 7 as the next digit of the answer. 
Result so far: 23747.0
Subtracting 42 from 47 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
When dividing 50 by 6, we get 8 with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 23747.8
If we take 48 away from 50, we end up 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.

Moving on to step 8:
6 can be fit into 20 3 times, resulting in a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 23747.83
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
6 goes into 20 3 times with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 23747.833
If we take 18 away from 20, we end up 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.

Our division results in 23747.833 with a remaining 0.0002.