2 Assignment 2

2.1 Problem 1

claim

1 For any 1kn and 0<x<1

(nk)xk(1+x)nexn

Proof

First lets notice that for x,k xk>0.now using the newton binomial we can get the following

(1+x)n=i=0n(ni)xi=(n0)x0+(n1)x1+(nk)xkpart of the sum+(nk+1)xk+1+(nn)xn

because each one of the sum’s element is non negtive the following hold

(nk)xk(1+x)n

using Bernoulli’s Inequality, for nN and x>0

0<1+x(1+xn)nnex

we can raise both side in power of n and we will get the complete formula

(nk)xk(1+x)nexn

claim 2.1

2 For any 1kn and 0<x<1

 (nk)(enk)k

Proof

if k=n we Instantly get using the result of claim 1.

1=(nn)(enn)n=en

now for k<n and using above inequality lets set 0<x=kn<1

(nk)(kn)keknn(nk)(nk)kek=(enk)k

claim 2.2

3 For any 1kn and 0<x<1

 i=0k(ni)(enk)k

Proof

using the same way as above and claim 1 lets
k<n set 0<x=kn<1

i=1n(ni)(kn)i(1+kn)n=i=0n(ni)(kn)ienkn=ek

divide by (kn)k

 i=0n(ni)i=1n(ni)(kn)ikek(nk)k=(enk)k

the first inequality holds because for ik we get ik<0

2.2 Problem 2.

Theorem 2.3

For all n 2, nlognn<log(n!)<nlogn i.e ln(n!)=Θ(nln(n))

Proof

First we note that ln(n!)=knlnk and using Riemann sum approximation, and the fact that ln is a non-decreasing function on [1,) ,for all x[k,k+1) Integrating we get

ln(k)ln(x)ln(k+1)
kk+1ln(k)dxkk+1ln(x)dxkk+1ln(k+1)dx.

Summing for k between 1 and n-1, we get

k=1n1ln(k)k=1n1kk+1ln(x)dx=1nln(x)dxk=1n1ln(k+1)=k=2nln(k)

adding ln(1),ln(n)

1nln(x)dx+ln(1)+ln(n)k=1n1ln(k)+ln(n)2ln(1)1nln(x)dx+ln(n).

hence for

1nlnxdx=xlnxx|1n=nlnnn+1

we get

nln(n)+ln(n)2n+1k=1nlnknlnn+3ln(n)2+1

using the theorem above lets add to the of power e

exp(nlnnn+1+ln(n)2)exp(ln(n!))exp(3ln(n)2+nlnnn+1)
n!=Θ(ne(ne)n)

2.3 Problem 3.

Let q(n) denote the number of ordered sets of positive integers whose sum is n, lets define Q such that Q is sequence size n of 1’s .

Q:11111

in total we looking at n times 1 and n-1 . now lets say we have 2 operators {+,|} we can replace each time with ine of them, if we choose the + we "merge" both of the sums, but if we choose | we "slice" the set.hence the sum of Q will always stay n and each unique decision of choosen operator in order will give us unique ordered sets of positive, we can choose 2 operators total n-1 times, hence the number of ordered sets is

q(n)=2n1

using the group Q define above, to find all the ordered sets size k hows sum is n, we can say that now we must replace k-1 of with |, witch leaves us with total of k sets, and all the rest will get the + operator immediately. in total we have k-1 of | to rplace k-1 operator of from total n1 ,and by suuming all the option over k sizes of group we get.

k=1n1(n1k1)=k=0n(n1k)=2n1=q(n)

2.4 Problem 4

Let p(n) denote the number of unordered sets of positive integers whose sum is n. lets define pk(n) to be number of unordered sets of size k of positive integers whose sum is n.
using the result of problem 3 we know that for ordered set size k we have (n1k1) option.if we looking at k different element we will have total of.

pk(n)=(n1k1)k!

but we might have some repeat numbers so its will be at most

pk(n)(n1k1)k!

since we define q(n) s.t p(n)=kpk(n) the following hold.

p(n)=kpk(n)max1kn(n1k1)k!

claim 2.4

there is an absolute constant c>0 for which p(n)ecn

Proof
p(n)=≥max1kn(n1k1)k!(n1k1)k!=1k!kn(nk)

using (*)(nk)(nk)k (**)k!ek(nk)k,

1k!kn(nk)1ek(nk)k (nk)kkn

for k=n

1en(nn)n(nn)nnn=enen=ene1+ln(n)

using the detention of limit ,for some 1>ϵ>0

1+ln(n)n n 01+ln(n)n<ϵ1+ln(n)>ϵn

hence for c=1ϵ ,c>0

ene1+ln(n)eneϵn=eneϵn=ecn

2.5 Problem 5.

Let π(m,n) denote the set of prime numbers in the interval [m,n].

we can see the following [m,2m]

{m+1,m+2,...,2m}

now lets partition it to prime and and non prime element s.t

{m+1,m+2,...,2m}π(m+1,2m)=c(m+1,2m)
nc(m+1,2m){n[m,2m]n is not prime}

now lets look at (2mm)

(2mm)=2m(2m1)...(m+1)m!=1m!(pπ(m+1,2m)p)(nc(m+1,2m)n)

since for any m+1p2m,pπ(m+1,2m)
i claim when p>m thus

m!(pπ(m+1,2m)p)

and we get

(2mm)=(nc(m+1,2m)n)m!1(pπ(m+1,2m)p)(pπ(m+1,2m)p)

first lets notice that

4n=22n=(1+1)2n=k=02n(2nk)>(2nn),
and 222n+1>(2n+1n)(2n+1n)22n

since its apper twice in the binomial coefficient, so both at scenario (even,odd) using the floor will give us bound for the given binom

(pπ(m/2+1,2m)p)(mm/2)2m

now lets use the floor function we can notice that

m/22k/2k=m/23k

hence for 2m,m,m/2

(pπ(m/4+1,m/2)p)(pπ(m/2+1,m)p)(mm/2)(m/2m/4)2m2m/2

we can apply it for all m,m/2,m/4...

(pπ(1,m)p)=(pπ(0+1,1)p)(pπ(m/2+1,m)p)(mm/2)(m/2m/4)(m/4m/8)2m2m/22m/4
2m+m/2+m/4+2m(1+1/2+1/4+)22m=4m

using line (1),(2) we sow above

log(pπ(1,n)p)<log(4m)O(2nlog2)
log(pπ(1,n)p)=I=(2i/i+1,i)iπ(1,n)log(Ip)I(2i/i+1,i)iπ(1,n)log(ii/2)2n(n2n)

since 2n(n2n) and the result from sector 5.1 we can bound the following.

I=(2i/i+1,i)iπ(1,n)(ii/2)<(pπ(1,n)p)(4n)

log both sides

log(I=(2i/i+1,i)iπ(1,n)(i2i))|π(1,n)|log(2lg(n)log2)<log(4n)

and we finality get

|π(1,n)|lg(n)log2<2nlog2|π(1,n)|=O(nlog(n))

2.6 Problem 6.

claim 2.5

Every tournament T of order |V|=2k contains an undominated set of size k.

Proof

the base case of the induction is trivial for k=1,2 lets assume the hypothesis hold for some for 2k, now lets look at T^ of order |V|=2k+1 lets look at the avarge degout i.e

|E||V|=2k+1(2k+11)22k+1=2k12

hence exist some v|V| such that vdegout2kvdegin<2k. now lets choose some 2k=|S|,{S:SV} such that v dominated by any vsS. lets apply our induction assumption on sub-tournament S, since exist S^S size |S^|k that not dominated by any other vertex|S^v|k+1 sub-set size k+1 that not dominated in |T|=2k+1

now lets look at some random tournament T that any e|E| have the same probability to be in each direction

Pr(e:uv)=Pr(e:vu)=1/2

the probability that v is dominates on some u is 1/2
the probability v is dominates on SV size k is 1/2k
the probebilty that e dominated by some |S|=k is (11/2k)
the probebilty that |T/S|=nk dominated by some |S|=k
is (11/2k)nk
the expected number of group size k can bound from above with (nk), hence when n holds

(nk)(11/2k)nk<1

then there is an n-vertex tournament so that every set of k vertices is dominated.
now lets use the property proved in Q(1) and we can bound the following for any k2

(nk)(11/2k)nke(nk)2kQ1 and 1kek(enk)k(nk)<1

hence for n>k+2kk2 the following hold .