Let's divide 820397 by 1
The aim is to understand the frequency of 1 in 820397.

Advancing to step 1:
If we divide 8 by 1, we get 8 and a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we take 8 away from 8, we end up with 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 1

On to step 2:
The number 1 fits into 2 2 times, leaving a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 82.0
Subtracting 2 from 2 leaves us with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 1

On to step 3:
0 divided by 1 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 820.0
If we subtract 0 from 0, we get 0.
Grab the next digit (3) from the dividend, add it to 0, then carry on: 3 / 1

Let's proceed to step 4:
3 divided by 1 is 3 with a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 8203.0
Subtract 3 from 3 to get 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 1

Going ahead to step 5:
1 can be fit into 9 9 times, resulting in a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 82039.0
Subtracting 9 from 9 leaves us with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 1

Step 6:
The number 1 fits into 7 7 times, leaving a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 820397.0
The remainder is 0 after subtracting 7 from 7.
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 7:
The number 1 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 820397.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.

Moving on to step 8:
1 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 820397.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.

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