540254 ÷ 51 
The aim is to understand the frequency of 51 in 540254.

On to step 1:
5 divided by 51 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 51

On to step 2:
54 divided by 51 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 51 from 54 leaves us with 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 51

On to step 3:
If we divide 30 by 51, we get 0 and a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we take 0 away from 30, we end up with 30.
Take the next digit (2) from the dividend and append it to 30, then repeat: 302 / 51

Advancing to step 4:
302 divided by 51 is 5 with a remainder of 47.
Use 5 as the next digit of our solution. 
Result so far: 105.0
Subtract 255 from 302 to get 47.
Take the next digit (5) from the dividend and append it to 47, then repeat: 475 / 51

Moving on to step 5:
When dividing 475 by 51, we get 9 with a remainder of 16.
The number 9 becomes the next digit in our result. 
Result so far: 1059.0
The remainder is 16 after subtracting 459 from 475.
Take the next digit (4) from the dividend and append it to 16, then repeat: 164 / 51

Advancing to step 6:
51 can be fit into 164 3 times, resulting in a remainder of 11.
The next digit of our result is 3. 
Result so far: 10593.0
Subtract 153 from 164 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
When dividing 110 by 51, we get 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 10593.2
Subtract 102 from 110 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
When dividing 80 by 51, we get 1 with a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 10593.21
If we take 51 away from 80, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 9:
51 goes into 290 5 times with a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 10593.215
Deduct 255 from 290 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 10:
51 goes into 350 6 times with a remainder of 44.
Record the quotient 6 as the next digit in the result. 
Result so far: 10593.2156
If we subtract 306 from 350, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Going ahead to step 11:
51 can be fit into 440 8 times, resulting in a remainder of 32.
The next digit of our result is 8. 
Result so far: 10593.21568
If we subtract 408 from 440, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 12:
When dividing 320 by 51, we get 6 with a remainder of 14.
The next digit of our result is 6. 
Result so far: 10593.215686
Subtracting 306 from 320 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 13:
51 can be fit into 140 2 times, resulting in a remainder of 38.
Record the quotient 2 as the next digit in the result. 
Result so far: 10593.2156862
Deduct 102 from 140 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 14:
When dividing 380 by 51, we get 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 10593.21568627
Deduct 357 from 380 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The quotient of the division is 10593.21568627, and the remainder is 2.3e-08.