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

Step 1:
When dividing 9 by 77, we get 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 77

Advancing to step 2:
98 divided by 77 is 1 with a remainder of 21.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 77 from 98, we get 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 77

Moving on to step 3:
215 divided by 77 is 2 with a remainder of 61.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
If we subtract 154 from 215, we get 61.
Append the next digit (3) from the dividend to 61 and continue with: 613 / 77

Advancing to step 4:
The number 77 fits into 613 7 times, leaving a remainder of 74.
Put 7 as the next digit of the answer. 
Result so far: 127.0
Deduct 539 from 613 and we're left with 74.
Include the next digit (9) from the dividend after 74, then repeat: 749 / 77

On to step 5:
When dividing 749 by 77, we get 9 with a remainder of 56.
Put 9 as the next digit of the answer. 
Result so far: 1279.0
If we subtract 693 from 749, we get 56.
Fetch the next digit (8) from the dividend, attach it to 56 and continue: 568 / 77

On to step 6:
77 goes into 568 7 times with a remainder of 29.
Put 7 as the next digit of the answer. 
Result so far: 12797.0
Subtract 539 from 568 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.

Moving on to step 7:
When dividing 290 by 77, we get 3 with a remainder of 59.
Use 3 as the next digit of our solution. 
Result so far: 12797.3
Subtracting 231 from 290 leaves us 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.

Step 8:
The number 77 fits into 590 7 times, leaving a remainder of 51.
The next digit of our result is 7. 
Result so far: 12797.37
Deduct 539 from 590 and we're left with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Let's proceed to step 9:
77 goes into 510 6 times with a remainder of 48.
Write down 6 as next digit of the result. 
Result so far: 12797.376
If we take 462 away from 510, we end up 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.

Going ahead to step 10:
480 divided by 77 is 6 with a remainder of 18.
The next digit of our result is 6. 
Result so far: 12797.3766
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.

After the division, we end up with 12797.3766 and a remainder of 0.00018.