We divide 838221 by 6
The aim is to understand the frequency of 6 in 838221.

Going ahead to step 1:
6 goes into 8 1 times with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 6 from 8 to get 2.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 6

Let's proceed to step 2:
The number 6 fits into 23 3 times, leaving a remainder of 5.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Subtract 18 from 23 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 6

Let's proceed to step 3:
The number 6 fits into 58 9 times, leaving a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 139.0
Subtract 54 from 58 to get 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 6

Advancing to step 4:
6 can be fit into 42 7 times, resulting in a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 1397.0
Subtract 42 from 42 to get 0.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 6

Step 5:
6 goes into 2 0 times with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 13970.0
Subtract 0 from 2 to get 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 6

Let's proceed to step 6:
21 divided by 6 is 3 with a remainder of 3.
The next digit of our result is 3. 
Result so far: 139703.0
If we subtract 18 from 21, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
6 goes into 30 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 139703.5
The remainder is 0 after subtracting 30 from 30.
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:
The number 6 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 139703.5
Subtract 0 from 0 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.

Step 9:
0 divided by 6 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 139703.5
The remainder is 0 after subtracting 0 from 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 final outcome is 139703.5, with a leftover of 0.0.