We look at the division of 512634 by 4 
The aim is to understand the frequency of 4 in 512634.

Moving on to step 1:
5 divided by 4 is 1 with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 4 away from 5, we end up with 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 4

Going ahead to step 2:
4 can be fit into 11 2 times, resulting in a remainder of 3.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 8 from 11, we get 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 4

Let's proceed to step 3:
When dividing 32 by 4, we get 8 with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 128.0
Subtract 32 from 32 to get 0.
Grab the next digit (6) from the dividend, add it to 0, then carry on: 6 / 4

Let's proceed to step 4:
4 goes into 6 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1281.0
If we take 4 away from 6, we end up with 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 4

Going ahead to step 5:
23 divided by 4 is 5 with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 12815.0
Deduct 20 from 23 and we're left with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 4

Let's proceed to step 6:
The number 4 fits into 34 8 times, leaving a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 128158.0
Deduct 32 from 34 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
4 goes into 20 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 128158.5
Subtracting 20 from 20 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.

Step 8:
4 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 128158.5
Subtract 0 from 0 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.

Moving on to step 9:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 128158.5
Subtract 0 from 0 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.

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