Let's divide 511123 by 51
The aim is to understand the frequency of 51 in 511123.

Moving on to step 1:
If we divide 5 by 51, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 51

Advancing to step 2:
51 divided by 51 is 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 51 from 51 to get 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 51

Let's proceed to step 3:
If we divide 1 by 51, we get 0 and a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 10.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 51

Going ahead to step 4:
If we divide 11 by 51, we get 0 and a remainder of 11.
The next digit of our result is 0. 
Result so far: 100.0
If we take 0 away from 11, we end up with 11.
Take the next digit (2) from the dividend and append it to 11, then repeat: 112 / 51

Step 5:
51 goes into 112 2 times with a remainder of 10.
The next digit of our result is 2. 
Result so far: 1002.0
If we subtract 102 from 112, we get 10.
Take the next digit (3) from the dividend and append it to 10, then repeat: 103 / 51

On to step 6:
If we divide 103 by 51, we get 2 and a remainder of 1.
The next digit of our result is 2. 
Result so far: 10022.0
The remainder is 1 after subtracting 102 from 103.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
51 can be fit into 10 0 times, resulting in a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 10022.0
If we take 0 away from 10, we end up 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.

On to step 8:
51 goes into 100 1 times with a remainder of 49.
Record the quotient 1 as the next digit in the result. 
Result so far: 10022.01
Subtracting 51 from 100 leaves us with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Step 9:
51 goes into 490 9 times with a remainder of 31.
The number 9 becomes the next digit in our result. 
Result so far: 10022.019
The remainder is 31 after subtracting 459 from 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 10:
51 goes into 310 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 10022.0196
Subtract 306 from 310 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 11:
If we divide 40 by 51, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 10022.0196
Subtracting 0 from 40 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 12:
The number 51 fits into 400 7 times, leaving a remainder of 43.
Put 7 as the next digit of the answer. 
Result so far: 10022.019607
Deduct 357 from 400 and we're left with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Advancing to step 13:
430 divided by 51 is 8 with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 10022.0196078
The remainder is 22 after subtracting 408 from 430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 14:
When dividing 220 by 51, we get 4 with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 10022.01960784
Deduct 204 from 220 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

The final outcome is 10022.01960784, with a leftover of 1.6e-08.