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

Going ahead to step 1:
4 divided by 6 is 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 6

Step 2:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 6.0
If we take 36 away from 40, we end up with 4.
Append the next digit (3) from the dividend to 4 and continue with: 43 / 6

Going ahead to step 3:
6 can be fit into 43 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 67.0
Deduct 42 from 43 and we're left with 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 6

On to step 4:
6 goes into 13 2 times with a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 672.0
The remainder is 1 after subtracting 12 from 13.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 6

Advancing to step 5:
The number 6 fits into 19 3 times, leaving a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 6723.0
Subtract 18 from 19 to get 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 6

Step 6:
If we divide 10 by 6, we get 1 and a remainder of 4.
The next digit of our result is 1. 
Result so far: 67231.0
Subtract 6 from 10 to get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 6

On to step 7:
When dividing 41 by 6, we get 6 with a remainder of 5.
Put 6 as the next digit of the answer. 
Result so far: 672316.0
If we subtract 36 from 41, we get 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 6

Moving on to step 8:
6 goes into 51 8 times with a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 6723168.0
If we take 48 away from 51, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 9:
The number 6 fits into 30 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 6723168.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.

Advancing to step 10:
0 divided by 6 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 6723168.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.

Advancing to step 11:
0 divided by 6 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 6723168.5
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 final result is 6723168.5 with a remainder of 0.0.