Let's divide 12788982 by 502
The aim is to understand the frequency of 502 in 12788982.

Moving on to step 1:
If we divide 1 by 502, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 502

Going ahead to step 2:
The number 502 fits into 12 0 times, leaving a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 12 and we're left with 12.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 502

Let's proceed to step 3:
502 goes into 127 0 times with a remainder of 127.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 127, we get 127.
Include the next digit (8) from the dividend after 127, then repeat: 1278 / 502

Advancing to step 4:
If we divide 1278 by 502, we get 2 and a remainder of 274.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 1004 away from 1278, we end up with 274.
Append the next digit (8) from the dividend to 274 and continue with: 2748 / 502

Going ahead to step 5:
When dividing 2748 by 502, we get 5 with a remainder of 238.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
Deduct 2510 from 2748 and we're left with 238.
Bring next digit (9) of the dividend behind the 238 and repeat the process: 2389 / 502

Moving on to step 6:
2389 divided by 502 is 4 with a remainder of 381.
The number 4 becomes the next digit in our result. 
Result so far: 254.0
Subtracting 2008 from 2389 leaves us with 381.
Fetch the next digit (8) from the dividend, attach it to 381 and continue: 3818 / 502

Moving on to step 7:
3818 divided by 502 is 7 with a remainder of 304.
Record the quotient 7 as the next digit in the result. 
Result so far: 2547.0
The remainder is 304 after subtracting 3514 from 3818.
Append the next digit (2) from the dividend to 304 and continue with: 3042 / 502

Step 8:
3042 divided by 502 is 6 with a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 25476.0
If we take 3012 away from 3042, we end up 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.

Advancing to step 9:
300 divided by 502 is 0 with a remainder of 300.
The number 0 becomes the next digit in our result. 
Result so far: 25476.0
Deduct 0 from 300 and we're left with 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Moving on to step 10:
502 goes into 3000 5 times with a remainder of 490.
The number 5 becomes the next digit in our result. 
Result so far: 25476.05
If we subtract 2510 from 3000, we get 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4900, and continue the process.

Let's proceed to step 11:
The number 502 fits into 4900 9 times, leaving a remainder of 382.
The next digit of our result is 9. 
Result so far: 25476.059
If we take 4518 away from 4900, we end up with 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Step 12:
502 goes into 3820 7 times with a remainder of 306.
Write down 7 as next digit of the result. 
Result so far: 25476.0597
Deduct 3514 from 3820 and we're left with 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Step 13:
502 goes into 3060 6 times with a remainder of 48.
Put 6 as the next digit of the answer. 
Result so far: 25476.05976
If we subtract 3012 from 3060, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 14:
If we divide 480 by 502, we get 0 and a remainder of 480.
Write down 0 as next digit of the result. 
Result so far: 25476.05976
Deduct 0 from 480 and we're left with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Step 15:
The number 502 fits into 4800 9 times, leaving a remainder of 282.
The number 9 becomes the next digit in our result. 
Result so far: 25476.0597609
Deduct 4518 from 4800 and we're left with 282.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Moving on to step 16:
If we divide 2820 by 502, we get 5 and a remainder of 310.
Put 5 as the next digit of the answer. 
Result so far: 25476.05976095
Subtracting 2510 from 2820 leaves us with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

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