We're dividing 389889 by 4 
The aim is to understand the frequency of 4 in 389889.

Let's proceed to step 1:
The number 4 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 4

On to step 2:
When dividing 38 by 4, we get 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtract 36 from 38 to get 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 4

Step 3:
If we divide 29 by 4, we get 7 and a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 97.0
Subtract 28 from 29 to get 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 4

Step 4:
18 divided by 4 is 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 974.0
The remainder is 2 after subtracting 16 from 18.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 4

On to step 5:
If we divide 28 by 4, we get 7 and a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 9747.0
Subtracting 28 from 28 leaves us with 0.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 4

Moving on to step 6:
When dividing 9 by 4, we get 2 with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 97472.0
Subtract 8 from 9 to 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.

Going ahead to step 7:
The number 4 fits into 10 2 times, leaving a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 97472.2
Subtract 8 from 10 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.

On to step 8:
20 divided by 4 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 97472.25
Subtract 20 from 20 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.

On to step 9:
4 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 97472.25
If we subtract 0 from 0, we 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.

Going ahead to step 10:
If we divide 0 by 4, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 97472.25
If we subtract 0 from 0, we 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.

The quotient of the division is 97472.25, and the remainder is 0.0.