Let's divide 397512 by 7
The aim is to understand the frequency of 7 in 397512.

Step 1:
When dividing 3 by 7, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

Let's proceed to step 2:
7 goes into 39 5 times with a remainder of 4.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 4 after subtracting 35 from 39.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 7

Moving on to step 3:
When dividing 47 by 7, we get 6 with a remainder of 5.
The next digit of our result is 6. 
Result so far: 56.0
Subtract 42 from 47 to get 5.
Bring next digit (5) of the dividend behind the 5 and repeat the process: 55 / 7

Step 4:
7 can be fit into 55 7 times, resulting in a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 567.0
Subtracting 49 from 55 leaves us with 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 7

Step 5:
If we divide 61 by 7, we get 8 and a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 5678.0
Deduct 56 from 61 and we're left with 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 7

Let's proceed to step 6:
The number 7 fits into 52 7 times, leaving a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 56787.0
If we subtract 49 from 52, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
When dividing 30 by 7, we get 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 56787.4
If we subtract 28 from 30, we 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 8:
20 divided by 7 is 2 with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 56787.42
Deduct 14 from 20 and we're left 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.

Advancing to step 9:
The number 7 fits into 60 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 56787.428
Subtracting 56 from 60 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 10:
7 goes into 40 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 56787.4285
If we subtract 35 from 40, we 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.

Step 11:
The number 7 fits into 50 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 56787.42857
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.

Going ahead to step 12:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 56787.428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
30 divided by 7 is 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 56787.4285714
If we take 28 away from 30, we end up 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 14:
When dividing 20 by 7, we get 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 56787.42857142
Deduct 14 from 20 and we're left 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.

The final result is 56787.42857142 with a remainder of 6e-09.