We divide 22879987 by 506
The aim is to understand the frequency of 506 in 22879987.

Moving on to step 1:
If we divide 2 by 506, we get 0 and a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 506

On to step 2:
When dividing 22 by 506, we get 0 with a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 22 to get 22.
Grab the next digit (8) from the dividend, add it to 22, then carry on: 228 / 506

Step 3:
The number 506 fits into 228 0 times, leaving a remainder of 228.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 228, we end up with 228.
Include the next digit (7) from the dividend after 228, then repeat: 2287 / 506

Moving on to step 4:
506 can be fit into 2287 4 times, resulting in a remainder of 263.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtracting 2024 from 2287 leaves us with 263.
Fetch the next digit (9) from the dividend, attach it to 263 and continue: 2639 / 506

Step 5:
The number 506 fits into 2639 5 times, leaving a remainder of 109.
The number 5 becomes the next digit in our result. 
Result so far: 45.0
Subtracting 2530 from 2639 leaves us with 109.
Bring next digit (9) of the dividend behind the 109 and repeat the process: 1099 / 506

Let's proceed to step 6:
If we divide 1099 by 506, we get 2 and a remainder of 87.
The next digit of our result is 2. 
Result so far: 452.0
The remainder is 87 after subtracting 1012 from 1099.
Append the next digit (8) from the dividend to 87 and continue with: 878 / 506

On to step 7:
The number 506 fits into 878 1 times, leaving a remainder of 372.
Record the quotient 1 as the next digit in the result. 
Result so far: 4521.0
Subtracting 506 from 878 leaves us with 372.
Append the next digit (7) from the dividend to 372 and continue with: 3727 / 506

Let's proceed to step 8:
When dividing 3727 by 506, we get 7 with a remainder of 185.
Put 7 as the next digit of the answer. 
Result so far: 45217.0
If we take 3542 away from 3727, we end up with 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Going ahead to step 9:
506 can be fit into 1850 3 times, resulting in a remainder of 332.
Record the quotient 3 as the next digit in the result. 
Result so far: 45217.3
Deduct 1518 from 1850 and we're left with 332.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3320, and continue the process.

Advancing to step 10:
When dividing 3320 by 506, we get 6 with a remainder of 284.
Use 6 as the next digit of our solution. 
Result so far: 45217.36
If we subtract 3036 from 3320, we get 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

Moving on to step 11:
2840 divided by 506 is 5 with a remainder of 310.
Use 5 as the next digit of our solution. 
Result so far: 45217.365
The remainder is 310 after subtracting 2530 from 2840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Moving on to step 12:
When dividing 3100 by 506, we get 6 with a remainder of 64.
Write down 6 as next digit of the result. 
Result so far: 45217.3656
Deduct 3036 from 3100 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Advancing to step 13:
When dividing 640 by 506, we get 1 with a remainder of 134.
Put 1 as the next digit of the answer. 
Result so far: 45217.36561
The remainder is 134 after subtracting 506 from 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

On to step 14:
If we divide 1340 by 506, we get 2 and a remainder of 328.
Use 2 as the next digit of our solution. 
Result so far: 45217.365612
If we take 1012 away from 1340, we end up with 328.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

Advancing to step 15:
506 goes into 3280 6 times with a remainder of 244.
The number 6 becomes the next digit in our result. 
Result so far: 45217.3656126
Subtract 3036 from 3280 to get 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

Step 16:
506 can be fit into 2440 4 times, resulting in a remainder of 416.
Put 4 as the next digit of the answer. 
Result so far: 45217.36561264
Deduct 2024 from 2440 and we're left with 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

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