How many permutations of $$1,2,..., 9$$ are there that do not start or end with an even number?
This is my attempt
Condition 1 [Starts with even] => $$4 * 8!$$ Condition 2 [Ends with even] => $$4 * 8! $$ Condition 3 [Starts with even and Ends with even] => $$4*3*7!$$
Therefore, $$9! - (Condition1 +Condition2 -Condition 3)$$
Is this the right answer?
Note: This answer pertains to the original version of the question, which did not have parentheses in the final displayed equation. end note
Your approach would be OK if you wrote it as
$$9!-Condition1-Condition2+Condition3$$
That would be using the Inclusion-Exclusion Principle: Start with the unrestricted number ($9!$), subtract off the numbers that violate the two conditions, but then realize you've subtracted twice the ones that violate both conditions.
But another way to solve the problem directly is to put odd numbers at the beginning and end, in $5\cdot4$ ways, and then fill in the rest in $7!$ ways.