We look at the division of 3957502 by 778 
The aim is to understand the frequency of 778 in 3957502.

Advancing to step 1:
3 divided by 778 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 778

Advancing to step 2:
778 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Grab the next digit (5) from the dividend, add it to 39, then carry on: 395 / 778

Step 3:
778 goes into 395 0 times with a remainder of 395.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 395, we get 395.
Fetch the next digit (7) from the dividend, attach it to 395 and continue: 3957 / 778

On to step 4:
778 goes into 3957 5 times with a remainder of 67.
Use 5 as the next digit of our solution. 
Result so far: 5.0
The remainder is 67 after subtracting 3890 from 3957.
Grab the next digit (5) from the dividend, add it to 67, then carry on: 675 / 778

Going ahead to step 5:
When dividing 675 by 778, we get 0 with a remainder of 675.
Record the quotient 0 as the next digit in the result. 
Result so far: 50.0
Subtract 0 from 675 to get 675.
Bring next digit (0) of the dividend behind the 675 and repeat the process: 6750 / 778

On to step 6:
When dividing 6750 by 778, we get 8 with a remainder of 526.
Use 8 as the next digit of our solution. 
Result so far: 508.0
The remainder is 526 after subtracting 6224 from 6750.
Grab the next digit (2) from the dividend, add it to 526, then carry on: 5262 / 778

Going ahead to step 7:
When dividing 5262 by 778, we get 6 with a remainder of 594.
The next digit of our result is 6. 
Result so far: 5086.0
The remainder is 594 after subtracting 4668 from 5262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5940, and continue the process.

Step 8:
If we divide 5940 by 778, we get 7 and a remainder of 494.
Write down 7 as next digit of the result. 
Result so far: 5086.7
Deduct 5446 from 5940 and we're left with 494.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4940, and continue the process.

Step 9:
The number 778 fits into 4940 6 times, leaving a remainder of 272.
Put 6 as the next digit of the answer. 
Result so far: 5086.76
Deduct 4668 from 4940 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Advancing to step 10:
778 can be fit into 2720 3 times, resulting in a remainder of 386.
The next digit of our result is 3. 
Result so far: 5086.763
Subtract 2334 from 2720 to get 386.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

Going ahead to step 11:
The number 778 fits into 3860 4 times, leaving a remainder of 748.
Use 4 as the next digit of our solution. 
Result so far: 5086.7634
If we subtract 3112 from 3860, we get 748.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7480, and continue the process.

Going ahead to step 12:
The number 778 fits into 7480 9 times, leaving a remainder of 478.
Put 9 as the next digit of the answer. 
Result so far: 5086.76349
Subtracting 7002 from 7480 leaves us with 478.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Advancing to step 13:
4780 divided by 778 is 6 with a remainder of 112.
The number 6 becomes the next digit in our result. 
Result so far: 5086.763496
If we take 4668 away from 4780, we end up with 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Advancing to step 14:
1120 divided by 778 is 1 with a remainder of 342.
Record the quotient 1 as the next digit in the result. 
Result so far: 5086.7634961
The remainder is 342 after subtracting 778 from 1120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

Going ahead to step 15:
The number 778 fits into 3420 4 times, leaving a remainder of 308.
Put 4 as the next digit of the answer. 
Result so far: 5086.76349614
If we subtract 3112 from 3420, we get 308.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3080, and continue the process.

After the division, we end up with 5086.76349614 and a remainder of 3.08e-07.