315865 divided by 77 
The aim is to understand the frequency of 77 in 315865.

On to step 1:
When dividing 3 by 77, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 77

On to step 2:
77 can be fit into 31 0 times, resulting in a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Append the next digit (5) from the dividend to 31 and continue with: 315 / 77

On to step 3:
315 divided by 77 is 4 with a remainder of 7.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtract 308 from 315 to get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 77

On to step 4:
77 goes into 78 1 times with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 41.0
If we subtract 77 from 78, we get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 77

Let's proceed to step 5:
When dividing 16 by 77, we get 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 410.0
Deduct 0 from 16 and we're left with 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 77

Moving on to step 6:
When dividing 165 by 77, we get 2 with a remainder of 11.
Use 2 as the next digit of our solution. 
Result so far: 4102.0
Subtract 154 from 165 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
77 can be fit into 110 1 times, resulting in a remainder of 33.
The next digit of our result is 1. 
Result so far: 4102.1
Subtracting 77 from 110 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Let's proceed to step 8:
330 divided by 77 is 4 with a remainder of 22.
The next digit of our result is 4. 
Result so far: 4102.14
Subtracting 308 from 330 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 9:
220 divided by 77 is 2 with a remainder of 66.
The next digit of our result is 2. 
Result so far: 4102.142
If we subtract 154 from 220, we get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Advancing to step 10:
77 can be fit into 660 8 times, resulting in a remainder of 44.
The number 8 becomes the next digit in our result. 
Result so far: 4102.1428
If we subtract 616 from 660, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Moving on to step 11:
If we divide 440 by 77, we get 5 and a remainder of 55.
Record the quotient 5 as the next digit in the result. 
Result so far: 4102.14285
The remainder is 55 after subtracting 385 from 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Step 12:
77 goes into 550 7 times with a remainder of 11.
The next digit of our result is 7. 
Result so far: 4102.142857
The remainder is 11 after subtracting 539 from 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 13:
77 goes into 110 1 times with a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 4102.1428571
The remainder is 33 after subtracting 77 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

On to step 14:
If we divide 330 by 77, we get 4 and a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 4102.14285714
Subtract 308 from 330 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The final result is 4102.14285714 with a remainder of 2.2e-08.