We divide 396871 by 4
The aim is to understand the frequency of 4 in 396871.

Let's proceed to step 1:
4 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 4

On to step 2:
4 goes into 39 9 times with a remainder of 3.
The next digit of our result is 9. 
Result so far: 9.0
If we subtract 36 from 39, we get 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 4

Let's proceed to step 3:
36 divided by 4 is 9 with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 99.0
Deduct 36 from 36 and we're left with 0.
Grab the next digit (8) from the dividend, add it to 0, then carry on: 8 / 4

Going ahead to step 4:
When dividing 8 by 4, we get 2 with a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 992.0
If we take 8 away from 8, we end up with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 4

Advancing to step 5:
4 goes into 7 1 times with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 9921.0
If we subtract 4 from 7, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 4

Advancing to step 6:
31 divided by 4 is 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 99217.0
Subtracting 28 from 31 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
30 divided by 4 is 7 with a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 99217.7
The remainder is 2 after subtracting 28 from 30.
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:
4 goes into 20 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 99217.75
Deduct 20 from 20 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.

Step 9:
0 divided by 4 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 99217.75
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.

Let's proceed 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: 99217.75
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.

After the division, we end up with 99217.75 and a remainder of 0.0.