We're dividing 502816 by 51 
The aim is to understand the frequency of 51 in 502816.

Let's proceed to step 1:
5 divided by 51 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 51

Going ahead to step 2:
The number 51 fits into 50 0 times, leaving a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Fetch the next digit (2) from the dividend, attach it to 50 and continue: 502 / 51

On to step 3:
51 goes into 502 9 times with a remainder of 43.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
The remainder is 43 after subtracting 459 from 502.
Include the next digit (8) from the dividend after 43, then repeat: 438 / 51

On to step 4:
51 goes into 438 8 times with a remainder of 30.
Use 8 as the next digit of our solution. 
Result so far: 98.0
If we subtract 408 from 438, we get 30.
Bring next digit (1) of the dividend behind the 30 and repeat the process: 301 / 51

Moving on to step 5:
51 can be fit into 301 5 times, resulting in a remainder of 46.
Use 5 as the next digit of our solution. 
Result so far: 985.0
If we take 255 away from 301, we end up with 46.
Include the next digit (6) from the dividend after 46, then repeat: 466 / 51

Moving on to step 6:
466 divided by 51 is 9 with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 9859.0
Deduct 459 from 466 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 7:
The number 51 fits into 70 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 9859.1
If we subtract 51 from 70, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 8:
190 divided by 51 is 3 with a remainder of 37.
Record the quotient 3 as the next digit in the result. 
Result so far: 9859.13
Subtracting 153 from 190 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 9:
51 goes into 370 7 times with a remainder of 13.
The next digit of our result is 7. 
Result so far: 9859.137
Subtracting 357 from 370 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 10:
51 goes into 130 2 times with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 9859.1372
The remainder is 28 after subtracting 102 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 11:
If we divide 280 by 51, we get 5 and a remainder of 25.
The next digit of our result is 5. 
Result so far: 9859.13725
Deduct 255 from 280 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 12:
250 divided by 51 is 4 with a remainder of 46.
The number 4 becomes the next digit in our result. 
Result so far: 9859.137254
Subtracting 204 from 250 leaves us with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Let's proceed to step 13:
51 goes into 460 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 9859.1372549
Subtracting 459 from 460 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 14:
51 can be fit into 10 0 times, resulting in a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 9859.1372549
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 9859.1372549 with a remaining 1e-08.