40679251 divided by 520 
The aim is to understand the frequency of 520 in 40679251.

Going ahead to step 1:
If we divide 4 by 520, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 520

Advancing to step 2:
520 can be fit into 40 0 times, resulting in a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Grab the next digit (6) from the dividend, add it to 40, then carry on: 406 / 520

On to step 3:
406 divided by 520 is 0 with a remainder of 406.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 406 after subtracting 0 from 406.
Grab the next digit (7) from the dividend, add it to 406, then carry on: 4067 / 520

Going ahead to step 4:
4067 divided by 520 is 7 with a remainder of 427.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtract 3640 from 4067 to get 427.
Append the next digit (9) from the dividend to 427 and continue with: 4279 / 520

Step 5:
When dividing 4279 by 520, we get 8 with a remainder of 119.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
The remainder is 119 after subtracting 4160 from 4279.
Append the next digit (2) from the dividend to 119 and continue with: 1192 / 520

On to step 6:
520 goes into 1192 2 times with a remainder of 152.
The next digit of our result is 2. 
Result so far: 782.0
The remainder is 152 after subtracting 1040 from 1192.
Include the next digit (5) from the dividend after 152, then repeat: 1525 / 520

Going ahead to step 7:
1525 divided by 520 is 2 with a remainder of 485.
Put 2 as the next digit of the answer. 
Result so far: 7822.0
If we take 1040 away from 1525, we end up with 485.
Grab the next digit (1) from the dividend, add it to 485, then carry on: 4851 / 520

On to step 8:
520 can be fit into 4851 9 times, resulting in a remainder of 171.
The next digit of our result is 9. 
Result so far: 78229.0
The remainder is 171 after subtracting 4680 from 4851.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1710, and continue the process.

Let's proceed to step 9:
520 can be fit into 1710 3 times, resulting in a remainder of 150.
The number 3 becomes the next digit in our result. 
Result so far: 78229.3
Subtract 1560 from 1710 to get 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Going ahead to step 10:
If we divide 1500 by 520, we get 2 and a remainder of 460.
Write down 2 as next digit of the result. 
Result so far: 78229.32
Deduct 1040 from 1500 and we're left with 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Going ahead to step 11:
The number 520 fits into 4600 8 times, leaving a remainder of 440.
The number 8 becomes the next digit in our result. 
Result so far: 78229.328
Deduct 4160 from 4600 and we're left with 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Moving on to step 12:
If we divide 4400 by 520, we get 8 and a remainder of 240.
Write down 8 as next digit of the result. 
Result so far: 78229.3288
Subtract 4160 from 4400 to get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Our division results in 78229.3288 with a remaining 0.0024.