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

Going ahead to step 1:
When dividing 5 by 4, we get 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 1 after subtracting 4 from 5.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 4

Moving on to step 2:
When dividing 18 by 4, we get 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
Deduct 16 from 18 and we're left with 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 4

Advancing to step 3:
23 divided by 4 is 5 with a remainder of 3.
Use 5 as the next digit of our solution. 
Result so far: 145.0
Subtracting 20 from 23 leaves us with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 4

On to step 4:
When dividing 33 by 4, we get 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 1458.0
If we take 32 away from 33, we end up with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 4

Moving on to step 5:
4 can be fit into 18 4 times, resulting in a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 14584.0
The remainder is 2 after subtracting 16 from 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 6:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14584.5
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.

Step 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14584.5
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.

Step 8:
4 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14584.5
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 final outcome is 14584.5, with a leftover of 0.0.