We're dividing 40804327 by 506 
The aim is to understand the frequency of 506 in 40804327.

Advancing to step 1:
506 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 506

Step 2:
When dividing 40 by 506, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Take the next digit (8) from the dividend and append it to 40, then repeat: 408 / 506

Let's proceed to step 3:
506 goes into 408 0 times with a remainder of 408.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 408 leaves us with 408.
Bring next digit (0) of the dividend behind the 408 and repeat the process: 4080 / 506

Let's proceed to step 4:
If we divide 4080 by 506, we get 8 and a remainder of 32.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
The remainder is 32 after subtracting 4048 from 4080.
Grab the next digit (4) from the dividend, add it to 32, then carry on: 324 / 506

Moving on to step 5:
324 divided by 506 is 0 with a remainder of 324.
The number 0 becomes the next digit in our result. 
Result so far: 80.0
Subtracting 0 from 324 leaves us with 324.
Append the next digit (3) from the dividend to 324 and continue with: 3243 / 506

Going ahead to step 6:
If we divide 3243 by 506, we get 6 and a remainder of 207.
Record the quotient 6 as the next digit in the result. 
Result so far: 806.0
Subtract 3036 from 3243 to get 207.
Grab the next digit (2) from the dividend, add it to 207, then carry on: 2072 / 506

On to step 7:
2072 divided by 506 is 4 with a remainder of 48.
Write down 4 as next digit of the result. 
Result so far: 8064.0
If we take 2024 away from 2072, we end up with 48.
Append the next digit (7) from the dividend to 48 and continue with: 487 / 506

Going ahead to step 8:
The number 506 fits into 487 0 times, leaving a remainder of 487.
The number 0 becomes the next digit in our result. 
Result so far: 80640.0
Subtract 0 from 487 to get 487.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4870, and continue the process.

Moving on to step 9:
506 goes into 4870 9 times with a remainder of 316.
The number 9 becomes the next digit in our result. 
Result so far: 80640.9
If we take 4554 away from 4870, we end up with 316.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3160, and continue the process.

Advancing to step 10:
3160 divided by 506 is 6 with a remainder of 124.
The next digit of our result is 6. 
Result so far: 80640.96
The remainder is 124 after subtracting 3036 from 3160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Going ahead to step 11:
If we divide 1240 by 506, we get 2 and a remainder of 228.
Put 2 as the next digit of the answer. 
Result so far: 80640.962
Subtract 1012 from 1240 to get 228.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2280, and continue the process.

Advancing to step 12:
506 goes into 2280 4 times with a remainder of 256.
Use 4 as the next digit of our solution. 
Result so far: 80640.9624
Subtracting 2024 from 2280 leaves us with 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

Step 13:
506 goes into 2560 5 times with a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 80640.96245
Deduct 2530 from 2560 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
506 can be fit into 300 0 times, resulting in a remainder of 300.
The next digit of our result is 0. 
Result so far: 80640.96245
If we subtract 0 from 300, we get 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

On to step 15:
The number 506 fits into 3000 5 times, leaving a remainder of 470.
Use 5 as the next digit of our solution. 
Result so far: 80640.9624505
If we take 2530 away from 3000, we end up with 470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4700, and continue the process.

On to step 16:
When dividing 4700 by 506, we get 9 with a remainder of 146.
Use 9 as the next digit of our solution. 
Result so far: 80640.96245059
If we subtract 4554 from 4700, we get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

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