Let's divide 40551737 by 518
The aim is to understand the frequency of 518 in 40551737.

On to step 1:
4 divided by 518 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 518

Going ahead to step 2:
The number 518 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (5) from the dividend, attach it to 40 and continue: 405 / 518

Advancing to step 3:
When dividing 405 by 518, we get 0 with a remainder of 405.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 405 after subtracting 0 from 405.
Include the next digit (5) from the dividend after 405, then repeat: 4055 / 518

Let's proceed to step 4:
When dividing 4055 by 518, we get 7 with a remainder of 429.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
Subtracting 3626 from 4055 leaves us with 429.
Include the next digit (1) from the dividend after 429, then repeat: 4291 / 518

Going ahead to step 5:
If we divide 4291 by 518, we get 8 and a remainder of 147.
Put 8 as the next digit of the answer. 
Result so far: 78.0
Subtracting 4144 from 4291 leaves us with 147.
Fetch the next digit (7) from the dividend, attach it to 147 and continue: 1477 / 518

Advancing to step 6:
1477 divided by 518 is 2 with a remainder of 441.
The number 2 becomes the next digit in our result. 
Result so far: 782.0
Subtract 1036 from 1477 to get 441.
Grab the next digit (3) from the dividend, add it to 441, then carry on: 4413 / 518

Advancing to step 7:
518 can be fit into 4413 8 times, resulting in a remainder of 269.
Write down 8 as next digit of the result. 
Result so far: 7828.0
If we take 4144 away from 4413, we end up with 269.
Include the next digit (7) from the dividend after 269, then repeat: 2697 / 518

Step 8:
2697 divided by 518 is 5 with a remainder of 107.
Use 5 as the next digit of our solution. 
Result so far: 78285.0
Deduct 2590 from 2697 and we're left with 107.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1070, and continue the process.

Let's proceed to step 9:
If we divide 1070 by 518, we get 2 and a remainder of 34.
The number 2 becomes the next digit in our result. 
Result so far: 78285.2
If we subtract 1036 from 1070, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 10:
The number 518 fits into 340 0 times, leaving a remainder of 340.
Put 0 as the next digit of the answer. 
Result so far: 78285.2
Subtract 0 from 340 to get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 11:
The number 518 fits into 3400 6 times, leaving a remainder of 292.
Record the quotient 6 as the next digit in the result. 
Result so far: 78285.206
Deduct 3108 from 3400 and we're left with 292.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2920, and continue the process.

Going ahead to step 12:
518 can be fit into 2920 5 times, resulting in a remainder of 330.
Use 5 as the next digit of our solution. 
Result so far: 78285.2065
Subtracting 2590 from 2920 leaves us with 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Moving on to step 13:
If we divide 3300 by 518, we get 6 and a remainder of 192.
The number 6 becomes the next digit in our result. 
Result so far: 78285.20656
Subtract 3108 from 3300 to get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Going ahead to step 14:
518 can be fit into 1920 3 times, resulting in a remainder of 366.
Write down 3 as next digit of the result. 
Result so far: 78285.206563
If we take 1554 away from 1920, we end up with 366.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3660, and continue the process.

Going ahead to step 15:
The number 518 fits into 3660 7 times, leaving a remainder of 34.
The number 7 becomes the next digit in our result. 
Result so far: 78285.2065637
Deduct 3626 from 3660 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 16:
If we divide 340 by 518, we get 0 and a remainder of 340.
The next digit of our result is 0. 
Result so far: 78285.2065637
If we subtract 0 from 340, we get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

The final result is 78285.2065637 with a remainder of 3.4e-07.