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

Moving on to step 1:
When dividing 7 by 46, we get 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 46

On to step 2:
46 goes into 79 1 times with a remainder of 33.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 33 after subtracting 46 from 79.
Bring next digit (6) of the dividend behind the 33 and repeat the process: 336 / 46

Advancing to step 3:
The number 46 fits into 336 7 times, leaving a remainder of 14.
The next digit of our result is 7. 
Result so far: 17.0
If we subtract 322 from 336, we get 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 46

Let's proceed to step 4:
When dividing 145 by 46, we get 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 173.0
Subtracting 138 from 145 leaves us with 7.
Bring next digit (4) of the dividend behind the 7 and repeat the process: 74 / 46

Going ahead to step 5:
If we divide 74 by 46, we get 1 and a remainder of 28.
Record the quotient 1 as the next digit in the result. 
Result so far: 1731.0
Subtracting 46 from 74 leaves us with 28.
Bring next digit (2) of the dividend behind the 28 and repeat the process: 282 / 46

Advancing to step 6:
46 can be fit into 282 6 times, resulting in a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 17316.0
If we subtract 276 from 282, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
46 can be fit into 60 1 times, resulting in a remainder of 14.
Write down 1 as next digit of the result. 
Result so far: 17316.1
Deduct 46 from 60 and we're left 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.

Step 8:
If we divide 140 by 46, we get 3 and a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 17316.13
Subtract 138 from 140 to get 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 9:
The number 46 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 17316.13
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 10:
If we divide 200 by 46, we get 4 and a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 17316.1304
If we subtract 184 from 200, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 11:
46 goes into 160 3 times with a remainder of 22.
Put 3 as the next digit of the answer. 
Result so far: 17316.13043
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.

Going ahead to step 12:
When dividing 220 by 46, we get 4 with a remainder of 36.
The number 4 becomes the next digit in our result. 
Result so far: 17316.130434
Subtracting 184 from 220 leaves us 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 13:
46 goes into 360 7 times with a remainder of 38.
Write down 7 as next digit of the result. 
Result so far: 17316.1304347
If we take 322 away from 360, we end up 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:
46 goes into 380 8 times with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 17316.13043478
If we subtract 368 from 380, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final outcome is 17316.13043478, with a leftover of 1.2e-08.