We're dividing 4165018 by 354 
The aim is to understand the frequency of 354 in 4165018.

Going ahead to step 1:
354 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 354

Let's proceed to step 2:
41 divided by 354 is 0 with a remainder of 41.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 41 to get 41.
Grab the next digit (6) from the dividend, add it to 41, then carry on: 416 / 354

Moving on to step 3:
The number 354 fits into 416 1 times, leaving a remainder of 62.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 62 after subtracting 354 from 416.
Bring next digit (5) of the dividend behind the 62 and repeat the process: 625 / 354

Let's proceed to step 4:
625 divided by 354 is 1 with a remainder of 271.
Put 1 as the next digit of the answer. 
Result so far: 11.0
The remainder is 271 after subtracting 354 from 625.
Fetch the next digit (0) from the dividend, attach it to 271 and continue: 2710 / 354

Advancing to step 5:
354 goes into 2710 7 times with a remainder of 232.
Write down 7 as next digit of the result. 
Result so far: 117.0
Deduct 2478 from 2710 and we're left with 232.
Take the next digit (1) from the dividend and append it to 232, then repeat: 2321 / 354

On to step 6:
354 goes into 2321 6 times with a remainder of 197.
Record the quotient 6 as the next digit in the result. 
Result so far: 1176.0
The remainder is 197 after subtracting 2124 from 2321.
Include the next digit (8) from the dividend after 197, then repeat: 1978 / 354

On to step 7:
354 goes into 1978 5 times with a remainder of 208.
The number 5 becomes the next digit in our result. 
Result so far: 11765.0
Subtract 1770 from 1978 to get 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Advancing to step 8:
When dividing 2080 by 354, we get 5 with a remainder of 310.
Put 5 as the next digit of the answer. 
Result so far: 11765.5
The remainder is 310 after subtracting 1770 from 2080.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Moving on to step 9:
3100 divided by 354 is 8 with a remainder of 268.
The next digit of our result is 8. 
Result so far: 11765.58
The remainder is 268 after subtracting 2832 from 3100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

On to step 10:
If we divide 2680 by 354, we get 7 and a remainder of 202.
The next digit of our result is 7. 
Result so far: 11765.587
Subtracting 2478 from 2680 leaves us with 202.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2020, and continue the process.

On to step 11:
354 goes into 2020 5 times with a remainder of 250.
Write down 5 as next digit of the result. 
Result so far: 11765.5875
Subtract 1770 from 2020 to get 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Advancing to step 12:
2500 divided by 354 is 7 with a remainder of 22.
Put 7 as the next digit of the answer. 
Result so far: 11765.58757
If we subtract 2478 from 2500, we get 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 13:
220 divided by 354 is 0 with a remainder of 220.
The next digit of our result is 0. 
Result so far: 11765.58757
Subtract 0 from 220 to get 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Let's proceed to step 14:
2200 divided by 354 is 6 with a remainder of 76.
Write down 6 as next digit of the result. 
Result so far: 11765.5875706
Subtracting 2124 from 2200 leaves us with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 15:
354 can be fit into 760 2 times, resulting in a remainder of 52.
Use 2 as the next digit of our solution. 
Result so far: 11765.58757062
If we subtract 708 from 760, we get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

The final result is 11765.58757062 with a remainder of 5.2e-08.