We're dividing 397997 by 79 
The aim is to understand the frequency of 79 in 397997.

Step 1:
If we divide 3 by 79, we get 0 and 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.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 79

Let's proceed to step 2:
When dividing 39 by 79, we get 0 with a remainder of 39.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 39, we get 39.
Fetch the next digit (7) from the dividend, attach it to 39 and continue: 397 / 79

On to step 3:
79 goes into 397 5 times with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtract 395 from 397 to get 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 79

Going ahead to step 4:
29 divided by 79 is 0 with a remainder of 29.
Put 0 as the next digit of the answer. 
Result so far: 50.0
If we subtract 0 from 29, we get 29.
Grab the next digit (9) from the dividend, add it to 29, then carry on: 299 / 79

Step 5:
79 can be fit into 299 3 times, resulting in a remainder of 62.
Write down 3 as next digit of the result. 
Result so far: 503.0
The remainder is 62 after subtracting 237 from 299.
Grab the next digit (7) from the dividend, add it to 62, then carry on: 627 / 79

Step 6:
79 can be fit into 627 7 times, resulting in a remainder of 74.
Write down 7 as next digit of the result. 
Result so far: 5037.0
If we subtract 553 from 627, we get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Moving on to step 7:
740 divided by 79 is 9 with a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 5037.9
Subtract 711 from 740 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 8:
79 goes into 290 3 times with a remainder of 53.
Write down 3 as next digit of the result. 
Result so far: 5037.93
Deduct 237 from 290 and we're left with 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Let's proceed to step 9:
If we divide 530 by 79, we get 6 and a remainder of 56.
The next digit of our result is 6. 
Result so far: 5037.936
Subtracting 474 from 530 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Moving on to step 10:
The number 79 fits into 560 7 times, leaving a remainder of 7.
The next digit of our result is 7. 
Result so far: 5037.9367
Subtract 553 from 560 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 11:
70 divided by 79 is 0 with a remainder of 70.
Use 0 as the next digit of our solution. 
Result so far: 5037.9367
If we take 0 away from 70, we end up with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

On to step 12:
The number 79 fits into 700 8 times, leaving a remainder of 68.
The number 8 becomes the next digit in our result. 
Result so far: 5037.936708
Subtract 632 from 700 to get 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Going ahead to step 13:
680 divided by 79 is 8 with a remainder of 48.
Record the quotient 8 as the next digit in the result. 
Result so far: 5037.9367088
If we subtract 632 from 680, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

After the division, we end up with 5037.9367088 and a remainder of 4.8e-07.