We look at the division of 171157 by 77 
The aim is to understand the frequency of 77 in 171157.

Step 1:
1 divided by 77 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 77

Moving on to step 2:
77 goes into 17 0 times with a remainder of 17.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 17, we end up with 17.
Grab the next digit (1) from the dividend, add it to 17, then carry on: 171 / 77

Let's proceed to step 3:
When dividing 171 by 77, we get 2 with a remainder of 17.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 154 away from 171, we end up with 17.
Bring next digit (1) of the dividend behind the 17 and repeat the process: 171 / 77

Step 4:
171 divided by 77 is 2 with a remainder of 17.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
The remainder is 17 after subtracting 154 from 171.
Bring next digit (5) of the dividend behind the 17 and repeat the process: 175 / 77

Step 5:
77 can be fit into 175 2 times, resulting in a remainder of 21.
Put 2 as the next digit of the answer. 
Result so far: 222.0
The remainder is 21 after subtracting 154 from 175.
Include the next digit (7) from the dividend after 21, then repeat: 217 / 77

Going ahead to step 6:
77 can be fit into 217 2 times, resulting in a remainder of 63.
Put 2 as the next digit of the answer. 
Result so far: 2222.0
The remainder is 63 after subtracting 154 from 217.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

Advancing to step 7:
77 goes into 630 8 times with a remainder of 14.
The next digit of our result is 8. 
Result so far: 2222.8
Subtract 616 from 630 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 8:
When dividing 140 by 77, we get 1 with a remainder of 63.
Record the quotient 1 as the next digit in the result. 
Result so far: 2222.81
If we take 77 away from 140, we end up with 63.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

Moving on to step 9:
630 divided by 77 is 8 with a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 2222.818
Subtracting 616 from 630 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 10:
140 divided by 77 is 1 with a remainder of 63.
Put 1 as the next digit of the answer. 
Result so far: 2222.8181
The remainder is 63 after subtracting 77 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

On to step 11:
The number 77 fits into 630 8 times, leaving a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 2222.81818
The remainder is 14 after subtracting 616 from 630.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 12:
140 divided by 77 is 1 with a remainder of 63.
Use 1 as the next digit of our solution. 
Result so far: 2222.818181
If we subtract 77 from 140, we get 63.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

Advancing to step 13:
77 goes into 630 8 times with a remainder of 14.
The next digit of our result is 8. 
Result so far: 2222.8181818
Subtracting 616 from 630 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 14:
77 goes into 140 1 times with a remainder of 63.
The number 1 becomes the next digit in our result. 
Result so far: 2222.81818181
The remainder is 63 after subtracting 77 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

After the division, we end up with 2222.81818181 and a remainder of 6.3e-08.