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

On to step 1:
8 divided by 4 is 2 with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 0 after subtracting 8 from 8.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 4

On to step 2:
The number 4 fits into 2 0 times, leaving a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 20.0
The remainder is 2 after subtracting 0 from 2.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 4

Going ahead to step 3:
4 can be fit into 21 5 times, resulting in a remainder of 1.
Use 5 as the next digit of our solution. 
Result so far: 205.0
If we subtract 20 from 21, we get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 4

Advancing to step 4:
The number 4 fits into 17 4 times, leaving a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 2054.0
If we take 16 away from 17, we end up with 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 4

Advancing to step 5:
4 goes into 14 3 times with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 20543.0
If we take 12 away from 14, we end up with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 4

Let's proceed to step 6:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 205435.0
The remainder is 0 after subtracting 20 from 20.
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 7:
0 divided by 4 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 205435.0
Subtracting 0 from 0 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.

Going ahead to step 8:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 205435.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.

Our division results in 205435.0 with a remaining 0.0.