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

Advancing to step 1:
1 divided by 4 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (3) from the dividend and append it to 1, then repeat: 13 / 4

Advancing to step 2:
The number 4 fits into 13 3 times, leaving a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 12 from 13 leaves us with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 4

Moving on to step 3:
The number 4 fits into 18 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 34.0
If we take 16 away from 18, we end up with 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 4

Advancing to step 4:
4 goes into 25 6 times with a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 346.0
If we take 24 away from 25, we end up with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 4

Going ahead to step 5:
4 can be fit into 11 2 times, resulting in a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 3462.0
If we subtract 8 from 11, we get 3.
Fetch the next digit (2) from the dividend, attach it to 3 and continue: 32 / 4

Going ahead to step 6:
4 can be fit into 32 8 times, resulting in a remainder of 0.
The next digit of our result is 8. 
Result so far: 34628.0
If we take 32 away from 32, 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.

On to step 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 34628.0
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.

On to step 8:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 34628.0
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.

In conclusion, the division gives 34628.0 with a balance of 0.0.