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

Advancing to step 1:
4 can be fit into 8 2 times, resulting in a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 8 away from 8, we end up with 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 4

Going ahead to step 2:
4 can be fit into 2 0 times, resulting in a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Subtract 0 from 2 to get 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 4

Step 3:
4 can be fit into 21 5 times, resulting in a remainder of 1.
The number 5 becomes the next digit in our result. 
Result so far: 205.0
If we take 20 away from 21, we end up with 1.
Append the next digit (3) from the dividend to 1 and continue with: 13 / 4

Step 4:
4 can be fit into 13 3 times, resulting in a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 2053.0
Subtract 12 from 13 to get 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 4

On to step 5:
When dividing 14 by 4, we get 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 20533.0
The remainder is 2 after subtracting 12 from 14.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 4

Advancing to step 6:
The number 4 fits into 25 6 times, leaving a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 205336.0
If we subtract 24 from 25, 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 7:
If we divide 10 by 4, we get 2 and a remainder of 2.
The next digit of our result is 2. 
Result so far: 205336.2
The remainder is 2 after subtracting 8 from 10.
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:
When dividing 20 by 4, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 205336.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.

Advancing to step 9:
4 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 205336.25
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.

Going ahead to step 10:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 205336.25
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 205336.25 with a remaining 0.0.