Inclusion/Exclusion Combinatorics

  • Thread starter Thread starter pupeye11
  • Start date Start date
  • Tags Tags
    Combinatorics
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
15 replies · 2K views
pupeye11
Messages
99
Reaction score
0

Homework Statement



Determine the number of permutations of {1,2,3,4,5,6,7} in which exactly four integers are in there natural positions.

The Attempt at a Solution



Would this be solved by using the Inclusion/Exclusion Principle and finding

[tex] \left|S\right| - \sum \left|A_{1}\right| + \sum \left|A_{1} \cap A_{2}\right| -...[/tex]

where i={1,2,3,4,5,6,7}
 
Physics news on Phys.org
Wait the easier way to do this would be to say there are

[tex] \begin{pmatrix}7\\4\end{pmatrix}[/tex]

while the other 3 integers will form a derangement, so the answer would be

[tex] \begin{pmatrix}7\\4\end{pmatrix} D_{3}[/tex]

Is that correct?
 
Yes. What is your value for D3?
 
Came out to 2 so my answer was 70
 
Is a non-recursive formula a formula that only works for a given function and parameters?
 
What do you mean given function and parameters? As far as I know, a non-recursive formula is one not defined in terms of previous terms.
 
Well the question states as follows:

The sequence [tex]f_n[/tex] is defined by [tex]f_0=f_1=2[/tex] and

[tex]f_n = (\frac{f_{n-1}+2f_{n-2}}{6})[/tex], when [tex]n\geq2[/tex].

Find a non-recursive formula for [tex]f_n[/tex]
 
It's asking you to find a formula for fn only in terms of n, not fanything.
 
So its the same as finding a recurrence relation?
 
What you gave in the problem is the recurrence relation. You need to find what is called a "closed form." From Wikipedia: Solving a recurrence relation means obtaining a closed-form solution: a non-recursive function of n.
 
Shoot, not really sure how to do that...
 
would it be the same as this problem:

solve the recurrence relation [tex]h_n = 5h_{n-1}+6h_{n-2}[/tex]

subject to the initial values [tex]h_0 = 1[/tex] and [tex]h_1 = -2[/tex]
 
It is similar enough that the same solution technique would likely work on both.
 
I will attempt that and post if I run into trouble. Thanks.