Let's divide 526338 by 2
The aim is to understand the frequency of 2 in 526338.

On to step 1:
When dividing 5 by 2, we get 2 with a remainder of 1.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 4 from 5 and we're left with 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 2

On to step 2:
2 can be fit into 12 6 times, resulting in a remainder of 0.
The next digit of our result is 6. 
Result so far: 26.0
The remainder is 0 after subtracting 12 from 12.
Append the next digit (6) from the dividend to 0 and continue with: 6 / 2

Moving on to step 3:
6 divided by 2 is 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 263.0
The remainder is 0 after subtracting 6 from 6.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 2

Step 4:
2 can be fit into 3 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 2631.0
Subtract 2 from 3 to get 1.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 2

Step 5:
When dividing 13 by 2, we get 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 26316.0
If we take 12 away from 13, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

Going ahead to step 6:
If we divide 18 by 2, we get 9 and a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 263169.0
The remainder is 0 after subtracting 18 from 18.
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 7:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 263169.0
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.

Let's proceed to step 8:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 263169.0
The remainder is 0 after subtracting 0 from 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 263169.0 with a remaining 0.0.