We look at the division of 157887 by 79 
The aim is to understand the frequency of 79 in 157887.

On to step 1:
1 divided by 79 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 79

On to step 2:
79 goes into 15 0 times with a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Append the next digit (7) from the dividend to 15 and continue with: 157 / 79

Let's proceed to step 3:
The number 79 fits into 157 1 times, leaving a remainder of 78.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 79 from 157 and we're left with 78.
Grab the next digit (8) from the dividend, add it to 78, then carry on: 788 / 79

Advancing to step 4:
When dividing 788 by 79, we get 9 with a remainder of 77.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Deduct 711 from 788 and we're left with 77.
Include the next digit (8) from the dividend after 77, then repeat: 778 / 79

Step 5:
The number 79 fits into 778 9 times, leaving a remainder of 67.
Record the quotient 9 as the next digit in the result. 
Result so far: 199.0
If we take 711 away from 778, we end up with 67.
Bring next digit (7) of the dividend behind the 67 and repeat the process: 677 / 79

Step 6:
The number 79 fits into 677 8 times, leaving a remainder of 45.
Use 8 as the next digit of our solution. 
Result so far: 1998.0
If we subtract 632 from 677, we get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 7:
When dividing 450 by 79, we get 5 with a remainder of 55.
The number 5 becomes the next digit in our result. 
Result so far: 1998.5
Deduct 395 from 450 and we're left with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Advancing to step 8:
The number 79 fits into 550 6 times, leaving a remainder of 76.
The number 6 becomes the next digit in our result. 
Result so far: 1998.56
If we subtract 474 from 550, we get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Advancing to step 9:
When dividing 760 by 79, we get 9 with a remainder of 49.
The next digit of our result is 9. 
Result so far: 1998.569
The remainder is 49 after subtracting 711 from 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Moving on to step 10:
The number 79 fits into 490 6 times, leaving a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 1998.5696
The remainder is 16 after subtracting 474 from 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 11:
79 goes into 160 2 times with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 1998.56962
The remainder is 2 after subtracting 158 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

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

Moving on to step 13:
200 divided by 79 is 2 with a remainder of 42.
The next digit of our result is 2. 
Result so far: 1998.5696202
Deduct 158 from 200 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Let's proceed to step 14:
420 divided by 79 is 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 1998.56962025
Subtract 395 from 420 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

The final result is 1998.56962025 with a remainder of 2.5e-08.