Let's divide 312172 by 77
The aim is to understand the frequency of 77 in 312172.

Going ahead to step 1:
When dividing 3 by 77, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 77

Moving on to step 2:
The number 77 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Take the next digit (2) from the dividend and append it to 31, then repeat: 312 / 77

Going ahead to step 3:
The number 77 fits into 312 4 times, leaving a remainder of 4.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 308 from 312 to get 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 77

On to step 4:
When dividing 41 by 77, we get 0 with a remainder of 41.
Use 0 as the next digit of our solution. 
Result so far: 40.0
Subtract 0 from 41 to get 41.
Bring next digit (7) of the dividend behind the 41 and repeat the process: 417 / 77

On to step 5:
77 can be fit into 417 5 times, resulting in a remainder of 32.
The next digit of our result is 5. 
Result so far: 405.0
If we subtract 385 from 417, we get 32.
Take the next digit (2) from the dividend and append it to 32, then repeat: 322 / 77

Advancing to step 6:
322 divided by 77 is 4 with a remainder of 14.
The number 4 becomes the next digit in our result. 
Result so far: 4054.0
Subtract 308 from 322 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.

Moving on to step 7:
The number 77 fits into 140 1 times, leaving a remainder of 63.
Put 1 as the next digit of the answer. 
Result so far: 4054.1
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.

Advancing to step 8:
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: 4054.18
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.

Advancing to step 9:
When dividing 140 by 77, we get 1 with a remainder of 63.
Write down 1 as next digit of the result. 
Result so far: 4054.181
Subtracting 77 from 140 leaves us 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.

Step 10:
630 divided by 77 is 8 with a remainder of 14.
The next digit of our result is 8. 
Result so far: 4054.1818
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.

Advancing to step 11:
77 can be fit into 140 1 times, resulting in a remainder of 63.
Put 1 as the next digit of the answer. 
Result so far: 4054.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.

Advancing to step 12:
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: 4054.181818
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.

Advancing to step 13:
The number 77 fits into 140 1 times, leaving a remainder of 63.
The next digit of our result is 1. 
Result so far: 4054.1818181
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.

Advancing to 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: 4054.18181818
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.

In conclusion, the division gives 4054.18181818 with a balance of 1.4e-08.