We look at the division of 395915 by 77 
The aim is to understand the frequency of 77 in 395915.

Let's proceed to step 1:
77 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 77

On to step 2:
If we divide 39 by 77, we get 0 and 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.
Include the next digit (5) from the dividend after 39, then repeat: 395 / 77

Going ahead to step 3:
395 divided by 77 is 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 10 after subtracting 385 from 395.
Fetch the next digit (9) from the dividend, attach it to 10 and continue: 109 / 77

Advancing to step 4:
109 divided by 77 is 1 with a remainder of 32.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Subtract 77 from 109 to get 32.
Bring next digit (1) of the dividend behind the 32 and repeat the process: 321 / 77

Let's proceed to step 5:
321 divided by 77 is 4 with a remainder of 13.
Write down 4 as next digit of the result. 
Result so far: 514.0
Subtract 308 from 321 to get 13.
Grab the next digit (5) from the dividend, add it to 13, then carry on: 135 / 77

Let's proceed to step 6:
If we divide 135 by 77, we get 1 and a remainder of 58.
Use 1 as the next digit of our solution. 
Result so far: 5141.0
If we subtract 77 from 135, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Going ahead to step 7:
When dividing 580 by 77, we get 7 with a remainder of 41.
Write down 7 as next digit of the result. 
Result so far: 5141.7
Subtracting 539 from 580 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 8:
When dividing 410 by 77, we get 5 with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 5141.75
Subtract 385 from 410 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 9:
The number 77 fits into 250 3 times, leaving a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 5141.753
If we subtract 231 from 250, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
77 can be fit into 190 2 times, resulting in a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 5141.7532
If we subtract 154 from 190, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 11:
If we divide 360 by 77, we get 4 and a remainder of 52.
Use 4 as the next digit of our solution. 
Result so far: 5141.75324
Subtracting 308 from 360 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Advancing to step 12:
If we divide 520 by 77, we get 6 and a remainder of 58.
The next digit of our result is 6. 
Result so far: 5141.753246
Subtracting 462 from 520 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 13:
77 can be fit into 580 7 times, resulting in a remainder of 41.
The number 7 becomes the next digit in our result. 
Result so far: 5141.7532467
Deduct 539 from 580 and we're left with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 14:
If we divide 410 by 77, we get 5 and a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 5141.75324675
The remainder is 25 after subtracting 385 from 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Our division results in 5141.75324675 with a remaining 2.5e-08.