We look at the division of 39798004 by 3 
The aim is to understand the frequency of 3 in 39798004.

Going ahead to step 1:
When dividing 3 by 3, we get 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 3 from 3, we get 0.
Bring next digit (9) of the dividend behind the 0 and repeat the process: 9 / 3

Advancing to step 2:
The number 3 fits into 9 3 times, leaving a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 13.0
If we take 9 away from 9, we end up with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 3

Advancing to step 3:
3 can be fit into 7 2 times, resulting in a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 132.0
Subtract 6 from 7 to get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 3

Step 4:
When dividing 19 by 3, we get 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 1326.0
The remainder is 1 after subtracting 18 from 19.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 3

Going ahead to step 5:
The number 3 fits into 18 6 times, leaving a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 13266.0
Deduct 18 from 18 and we're left with 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 3

Step 6:
3 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 132660.0
Subtract 0 from 0 to get 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 3

On to step 7:
If we divide 0 by 3, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 1326600.0
Subtracting 0 from 0 leaves us with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 3

Moving on to step 8:
3 can be fit into 4 1 times, resulting in a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 13266001.0
If we subtract 3 from 4, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 9:
If we divide 10 by 3, we get 3 and a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 13266001.3
Subtracting 9 from 10 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 10:
The number 3 fits into 10 3 times, leaving a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 13266001.33
The remainder is 1 after subtracting 9 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The quotient of the division is 13266001.33, and the remainder is 0.001.