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

Advancing to step 1:
When dividing 3 by 79, we get 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 79

Step 2:
79 can be fit into 39 0 times, resulting in 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.
Bring next digit (9) of the dividend behind the 39 and repeat the process: 399 / 79

Advancing to step 3:
79 can be fit into 399 5 times, resulting in a remainder of 4.
The next digit of our result is 5. 
Result so far: 5.0
Deduct 395 from 399 and we're left with 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 79

Moving on to step 4:
49 divided by 79 is 0 with a remainder of 49.
Put 0 as the next digit of the answer. 
Result so far: 50.0
The remainder is 49 after subtracting 0 from 49.
Fetch the next digit (7) from the dividend, attach it to 49 and continue: 497 / 79

Advancing to step 5:
497 divided by 79 is 6 with a remainder of 23.
The number 6 becomes the next digit in our result. 
Result so far: 506.0
If we take 474 away from 497, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 6:
79 goes into 230 2 times with a remainder of 72.
Put 2 as the next digit of the answer. 
Result so far: 506.2
If we subtract 158 from 230, we get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 7:
79 goes into 720 9 times with a remainder of 9.
Use 9 as the next digit of our solution. 
Result so far: 506.29
If we take 711 away from 720, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 8:
79 can be fit into 90 1 times, resulting in a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 506.291
If we subtract 79 from 90, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 9:
If we divide 110 by 79, we get 1 and a remainder of 31.
Put 1 as the next digit of the answer. 
Result so far: 506.2911
Subtract 79 from 110 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

In conclusion, the division gives 506.2911 with a balance of 0.00031.