6389640 divided by 4 
The aim is to understand the frequency of 4 in 6389640.

Let's proceed to step 1:
The number 4 fits into 6 1 times, leaving a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 4 from 6 to get 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 4

Let's proceed to step 2:
4 goes into 23 5 times with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we take 20 away from 23, we end up with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 4

Going ahead to step 3:
38 divided by 4 is 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 159.0
If we take 36 away from 38, we end up with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 4

Going ahead to step 4:
When dividing 29 by 4, we get 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 1597.0
If we take 28 away from 29, we end up with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 4

Let's proceed to step 5:
When dividing 16 by 4, we get 4 with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 15974.0
Deduct 16 from 16 and we're left with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 4

Advancing to step 6:
If we divide 4 by 4, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 159741.0
Deduct 4 from 4 and we're left with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 4

Advancing to step 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 1597410.0
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 8:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1597410.0
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:
If we divide 0 by 4, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 1597410.0
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 quotient of the division is 1597410.0, and the remainder is 0.0.