We look at the division of 6145946 by 540 
The aim is to understand the frequency of 540 in 6145946.

On to step 1:
6 divided by 540 is 0 with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 540

Advancing to step 2:
If we divide 61 by 540, we get 0 and a remainder of 61.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 61 after subtracting 0 from 61.
Fetch the next digit (4) from the dividend, attach it to 61 and continue: 614 / 540

Step 3:
If we divide 614 by 540, we get 1 and a remainder of 74.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 540 from 614 leaves us with 74.
Take the next digit (5) from the dividend and append it to 74, then repeat: 745 / 540

Step 4:
540 can be fit into 745 1 times, resulting in a remainder of 205.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
If we subtract 540 from 745, we get 205.
Bring next digit (9) of the dividend behind the 205 and repeat the process: 2059 / 540

Step 5:
540 can be fit into 2059 3 times, resulting in a remainder of 439.
Use 3 as the next digit of our solution. 
Result so far: 113.0
Deduct 1620 from 2059 and we're left with 439.
Grab the next digit (4) from the dividend, add it to 439, then carry on: 4394 / 540

Let's proceed to step 6:
540 goes into 4394 8 times with a remainder of 74.
The next digit of our result is 8. 
Result so far: 1138.0
If we take 4320 away from 4394, we end up with 74.
Bring next digit (6) of the dividend behind the 74 and repeat the process: 746 / 540

Moving on to step 7:
If we divide 746 by 540, we get 1 and a remainder of 206.
Write down 1 as next digit of the result. 
Result so far: 11381.0
Deduct 540 from 746 and we're left with 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Let's proceed to step 8:
The number 540 fits into 2060 3 times, leaving a remainder of 440.
Use 3 as the next digit of our solution. 
Result so far: 11381.3
The remainder is 440 after subtracting 1620 from 2060.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Moving on to step 9:
540 can be fit into 4400 8 times, resulting in a remainder of 80.
The next digit of our result is 8. 
Result so far: 11381.38
Deduct 4320 from 4400 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Step 10:
800 divided by 540 is 1 with a remainder of 260.
The next digit of our result is 1. 
Result so far: 11381.381
Subtract 540 from 800 to get 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

On to step 11:
2600 divided by 540 is 4 with a remainder of 440.
Put 4 as the next digit of the answer. 
Result so far: 11381.3814
If we take 2160 away from 2600, we end up with 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Going ahead to step 12:
The number 540 fits into 4400 8 times, leaving a remainder of 80.
Record the quotient 8 as the next digit in the result. 
Result so far: 11381.38148
Subtract 4320 from 4400 to get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Step 13:
The number 540 fits into 800 1 times, leaving a remainder of 260.
Write down 1 as next digit of the result. 
Result so far: 11381.381481
The remainder is 260 after subtracting 540 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Going ahead to step 14:
540 goes into 2600 4 times with a remainder of 440.
The next digit of our result is 4. 
Result so far: 11381.3814814
The remainder is 440 after subtracting 2160 from 2600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Moving on to step 15:
540 goes into 4400 8 times with a remainder of 80.
Record the quotient 8 as the next digit in the result. 
Result so far: 11381.38148148
If we take 4320 away from 4400, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

The final outcome is 11381.38148148, with a leftover of 8e-08.