We look at the division of 540318 by 46 
The aim is to understand the frequency of 46 in 540318.

On to step 1:
When dividing 5 by 46, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 46

Going ahead to step 2:
46 can be fit into 54 1 times, resulting in a remainder of 8.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 46 from 54 to get 8.
Include the next digit (0) from the dividend after 8, then repeat: 80 / 46

Going ahead to step 3:
80 divided by 46 is 1 with a remainder of 34.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
Deduct 46 from 80 and we're left with 34.
Grab the next digit (3) from the dividend, add it to 34, then carry on: 343 / 46

Going ahead to step 4:
46 can be fit into 343 7 times, resulting in a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 117.0
The remainder is 21 after subtracting 322 from 343.
Append the next digit (1) from the dividend to 21 and continue with: 211 / 46

Advancing to step 5:
46 can be fit into 211 4 times, resulting in a remainder of 27.
The next digit of our result is 4. 
Result so far: 1174.0
Subtract 184 from 211 to get 27.
Append the next digit (8) from the dividend to 27 and continue with: 278 / 46

Step 6:
46 goes into 278 6 times with a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 11746.0
If we take 276 away from 278, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
When dividing 20 by 46, we get 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 11746.0
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
46 goes into 200 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 11746.04
Deduct 184 from 200 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.

On to step 9:
When dividing 160 by 46, we get 3 with a remainder of 22.
The next digit of our result is 3. 
Result so far: 11746.043
Deduct 138 from 160 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 10:
When dividing 220 by 46, we get 4 with a remainder of 36.
Write down 4 as next digit of the result. 
Result so far: 11746.0434
If we take 184 away from 220, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 11:
46 can be fit into 360 7 times, resulting in a remainder of 38.
Put 7 as the next digit of the answer. 
Result so far: 11746.04347
Deduct 322 from 360 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.

Advancing to step 12:
If we divide 380 by 46, we get 8 and a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 11746.043478
If we take 368 away from 380, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 13:
46 can be fit into 120 2 times, resulting in a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 11746.0434782
If we subtract 92 from 120, we get 28.
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 14:
46 goes into 280 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 11746.04347826
Subtracting 276 from 280 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 11746.04347826 with a remaining 4e-09.