We're dividing 166830 by 77 
The aim is to understand the frequency of 77 in 166830.

Going ahead to step 1:
1 divided by 77 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 77

On to step 2:
77 can be fit into 16 0 times, resulting in a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Grab the next digit (6) from the dividend, add it to 16, then carry on: 166 / 77

Going ahead to step 3:
When dividing 166 by 77, we get 2 with a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 12 after subtracting 154 from 166.
Append the next digit (8) from the dividend to 12 and continue with: 128 / 77

Advancing to step 4:
77 goes into 128 1 times with a remainder of 51.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
If we subtract 77 from 128, we get 51.
Include the next digit (3) from the dividend after 51, then repeat: 513 / 77

Moving on to step 5:
If we divide 513 by 77, we get 6 and a remainder of 51.
The number 6 becomes the next digit in our result. 
Result so far: 216.0
The remainder is 51 after subtracting 462 from 513.
Bring next digit (0) of the dividend behind the 51 and repeat the process: 510 / 77

Step 6:
77 can be fit into 510 6 times, resulting in a remainder of 48.
Write down 6 as next digit of the result. 
Result so far: 2166.0
Subtracting 462 from 510 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 7:
The number 77 fits into 480 6 times, leaving a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 2166.6
Subtracting 462 from 480 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 8:
180 divided by 77 is 2 with a remainder of 26.
The number 2 becomes the next digit in our result. 
Result so far: 2166.62
Subtract 154 from 180 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 9:
260 divided by 77 is 3 with a remainder of 29.
The next digit of our result is 3. 
Result so far: 2166.623
Subtracting 231 from 260 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 10:
If we divide 290 by 77, we get 3 and a remainder of 59.
Record the quotient 3 as the next digit in the result. 
Result so far: 2166.6233
If we take 231 away from 290, we end up with 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

The quotient of the division is 2166.6233, and the remainder is 0.00059.