How to define the atom numbers in unsaturated hydrocarbons correctly according to IUPAC? I would like to address the compound below.



This compound on elaborate elongation would result in this structure.



But is the below given numbering correct? I am just wondering that what if the same compound is given numbering, starting from that carbon which is assigned 7th number in the first elaborate diagram (second diagram), by doing so, triple bonded substituent will also get the least number, as shown in the below given diagram.

 



I have a similar problem with this compound:



What if you just reverse the numbering? By reversal I mean, the carbon assigned 1st number should be given the last number, am I violating any rule? If I do that, by numbering the compound in reverse order, we get least number for the methyl chain substituent, so is it necessary that methyl group substituted in the side chain should get the highest possible number?

In short, I mean, is the below given numbering valid or not?
Your first compound should be (3E)-5-ethynylhepta-1,3,6-triene. The 2 conjugated double bonds at the end determine the first carbon.

The second compound should be (4-methylpentyl)cyclobutane. The aliphatic group has less precedence than the cyclobutane group.