Let's divide 838478 by 4
The aim is to understand the frequency of 4 in 838478.

Going ahead to step 1:
4 goes into 8 2 times with a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 8 from 8, we get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 4

Going ahead to step 2:
The number 4 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 20.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 4

Going ahead to step 3:
4 can be fit into 38 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 209.0
If we take 36 away from 38, we end up with 2.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 4

Moving on to step 4:
4 can be fit into 24 6 times, resulting in a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 2096.0
The remainder is 0 after subtracting 24 from 24.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 4

Advancing to step 5:
7 divided by 4 is 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 20961.0
If we take 4 away from 7, we end up with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 4

Let's proceed to step 6:
If we divide 38 by 4, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 209619.0
Subtracting 36 from 38 leaves us 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.

Step 7:
20 divided by 4 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 209619.5
Subtracting 20 from 20 leaves us 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.

Step 8:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 209619.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.

Advancing to step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 209619.5
Deduct 0 from 0 and we're left 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.

Our division results in 209619.5 with a remaining 0.0.