We divide 78016397 by 520
The aim is to understand the frequency of 520 in 78016397.

Going ahead to step 1:
520 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 520

Going ahead to step 2:
If we divide 78 by 520, we get 0 and a remainder of 78.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 78 to get 78.
Fetch the next digit (0) from the dividend, attach it to 78 and continue: 780 / 520

Step 3:
When dividing 780 by 520, we get 1 with a remainder of 260.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 520 away from 780, we end up with 260.
Take the next digit (1) from the dividend and append it to 260, then repeat: 2601 / 520

Let's proceed to step 4:
If we divide 2601 by 520, we get 5 and a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we take 2600 away from 2601, we end up with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 520

Let's proceed to step 5:
The number 520 fits into 16 0 times, leaving a remainder of 16.
The next digit of our result is 0. 
Result so far: 150.0
If we subtract 0 from 16, we get 16.
Fetch the next digit (3) from the dividend, attach it to 16 and continue: 163 / 520

Advancing to step 6:
When dividing 163 by 520, we get 0 with a remainder of 163.
The number 0 becomes the next digit in our result. 
Result so far: 1500.0
Subtract 0 from 163 to get 163.
Fetch the next digit (9) from the dividend, attach it to 163 and continue: 1639 / 520

On to step 7:
When dividing 1639 by 520, we get 3 with a remainder of 79.
Use 3 as the next digit of our solution. 
Result so far: 15003.0
If we subtract 1560 from 1639, we get 79.
Fetch the next digit (7) from the dividend, attach it to 79 and continue: 797 / 520

Moving on to step 8:
797 divided by 520 is 1 with a remainder of 277.
Use 1 as the next digit of our solution. 
Result so far: 150031.0
The remainder is 277 after subtracting 520 from 797.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

Advancing to step 9:
When dividing 2770 by 520, we get 5 with a remainder of 170.
The number 5 becomes the next digit in our result. 
Result so far: 150031.5
Subtracting 2600 from 2770 leaves us with 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Advancing to step 10:
520 goes into 1700 3 times with a remainder of 140.
The number 3 becomes the next digit in our result. 
Result so far: 150031.53
Subtract 1560 from 1700 to get 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Moving on to step 11:
520 can be fit into 1400 2 times, resulting in a remainder of 360.
The number 2 becomes the next digit in our result. 
Result so far: 150031.532
Deduct 1040 from 1400 and we're left with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Going ahead to step 12:
If we divide 3600 by 520, we get 6 and a remainder of 480.
The next digit of our result is 6. 
Result so far: 150031.5326
If we subtract 3120 from 3600, we get 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Moving on to step 13:
If we divide 4800 by 520, we get 9 and a remainder of 120.
The next digit of our result is 9. 
Result so far: 150031.53269
If we subtract 4680 from 4800, we get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Advancing to step 14:
The number 520 fits into 1200 2 times, leaving a remainder of 160.
Put 2 as the next digit of the answer. 
Result so far: 150031.532692
The remainder is 160 after subtracting 1040 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Step 15:
520 goes into 1600 3 times with a remainder of 40.
Record the quotient 3 as the next digit in the result. 
Result so far: 150031.5326923
Subtracting 1560 from 1600 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 16:
When dividing 400 by 520, we get 0 with a remainder of 400.
The next digit of our result is 0. 
Result so far: 150031.5326923
The remainder is 400 after subtracting 0 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

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