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

On to step 1:
If we divide 3 by 77, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 77

Advancing to step 2:
39 divided by 77 is 0 with a remainder of 39.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Take the next digit (7) from the dividend and append it to 39, then repeat: 397 / 77

On to step 3:
397 divided by 77 is 5 with a remainder of 12.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 385 from 397, we get 12.
Append the next digit (1) from the dividend to 12 and continue with: 121 / 77

Step 4:
If we divide 121 by 77, we get 1 and a remainder of 44.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Subtracting 77 from 121 leaves us with 44.
Take the next digit (0) from the dividend and append it to 44, then repeat: 440 / 77

On to step 5:
77 goes into 440 5 times with a remainder of 55.
The number 5 becomes the next digit in our result. 
Result so far: 515.0
If we take 385 away from 440, we end up with 55.
Include the next digit (3) from the dividend after 55, then repeat: 553 / 77

On to step 6:
77 can be fit into 553 7 times, resulting in a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 5157.0
Subtracting 539 from 553 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 7:
If we divide 140 by 77, we get 1 and a remainder of 63.
Put 1 as the next digit of the answer. 
Result so far: 5157.1
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.

Let's proceed to step 8:
When dividing 630 by 77, we get 8 with a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 5157.18
Deduct 616 from 630 and we're left 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.

Advancing to step 9:
When dividing 140 by 77, we get 1 with a remainder of 63.
The number 1 becomes the next digit in our result. 
Result so far: 5157.181
Subtract 77 from 140 to 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.

Step 10:
When dividing 630 by 77, we get 8 with a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 5157.1818
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.

Advancing to step 11:
The number 77 fits into 140 1 times, leaving a remainder of 63.
Record the quotient 1 as the next digit in the result. 
Result so far: 5157.18181
Deduct 77 from 140 and we're left 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 12:
When dividing 630 by 77, we get 8 with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 5157.181818
If we subtract 616 from 630, we 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.

Advancing to step 13:
When dividing 140 by 77, we get 1 with a remainder of 63.
The number 1 becomes the next digit in our result. 
Result so far: 5157.1818181
Subtract 77 from 140 to 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.

Step 14:
77 can be fit into 630 8 times, resulting in a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 5157.18181818
If we subtract 616 from 630, we 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.

The quotient of the division is 5157.18181818, and the remainder is 1.4e-08.