We're dividing 397359 by 7 
The aim is to understand the frequency of 7 in 397359.

Let's proceed to step 1:
If we divide 3 by 7, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 7

Let's proceed to step 2:
If we divide 39 by 7, we get 5 and a remainder of 4.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 35 from 39 leaves us with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 7

On to step 3:
47 divided by 7 is 6 with a remainder of 5.
Use 6 as the next digit of our solution. 
Result so far: 56.0
The remainder is 5 after subtracting 42 from 47.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 7

Moving on to step 4:
If we divide 53 by 7, we get 7 and a remainder of 4.
The next digit of our result is 7. 
Result so far: 567.0
Subtracting 49 from 53 leaves us with 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 7

Moving on to step 5:
7 can be fit into 45 6 times, resulting in a remainder of 3.
Write down 6 as next digit of the result. 
Result so far: 5676.0
Subtract 42 from 45 to get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

Moving on to step 6:
When dividing 39 by 7, we get 5 with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 56765.0
The remainder is 4 after subtracting 35 from 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
The number 7 fits into 40 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 56765.5
Subtract 35 from 40 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
7 goes into 50 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 56765.57
Deduct 49 from 50 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 9:
The number 7 fits into 10 1 times, leaving a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 56765.571
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 10:
7 can be fit into 30 4 times, resulting in a remainder of 2.
The next digit of our result is 4. 
Result so far: 56765.5714
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 11:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 56765.57142
Subtracting 14 from 20 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 12:
If we divide 60 by 7, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 56765.571428
Subtract 56 from 60 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 13:
7 goes into 40 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 56765.5714285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 14:
50 divided by 7 is 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 56765.57142857
If we subtract 49 from 50, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final outcome is 56765.57142857, with a leftover of 1e-09.