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

Let's proceed to step 1:
The number 2 fits into 8 4 times, leaving a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 8 from 8 and we're left with 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 2

Let's proceed to step 2:
2 goes into 1 0 times with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
Subtract 0 from 1 to get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 2

Going ahead to step 3:
When dividing 17 by 2, we get 8 with a remainder of 1.
Record the quotient 8 as the next digit in the result. 
Result so far: 408.0
Subtract 16 from 17 to get 1.
Take the next digit (3) from the dividend and append it to 1, then repeat: 13 / 2

Let's proceed to step 4:
If we divide 13 by 2, we get 6 and a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 4086.0
The remainder is 1 after subtracting 12 from 13.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 2

On to step 5:
2 can be fit into 17 8 times, resulting in a remainder of 1.
Use 8 as the next digit of our solution. 
Result so far: 40868.0
Deduct 16 from 17 and we're left with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 2

Going ahead to step 6:
18 divided by 2 is 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 408689.0
Subtract 18 from 18 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.

On to step 7:
If we divide 0 by 2, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 408689.0
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.

On to step 8:
2 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 408689.0
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.

The final outcome is 408689.0, with a leftover of 0.0.