1 Assignment 1

1.1 Problem 1.

Given n1(mod 8) we looking for the number of subsets n-element set, whose size is 0 (mod 4).
Let Sn(a,b) be the sum of the binomial coefficients with ka (mod b).

2n=(1+1)n=(n0)+(n1)+(n2)++(nn)=Sn(1,2)+Sn(0,2)
(1+i)n=(n0)+(n1)i(n2)(n3)i+(n4)+(n5)i=Sn(0,4)+iSn(1,4)Sn(2,4)iSn(3,4)
(1i)n=(n0)(n1)i(n2)+(n3)i+(n4)(n5)i=Sn(0,4)iSn(1,4)Sn(2,4)+iSn(3,4)

we can notice that the amount of subsets of a n-element set, whose size is 0(mod4) when n1(mod 8)

(n0)+(n4)+(n8)+=Sn(1,4)

and based on the symetric propertyy of the binomial its sufistace to add the binomal form of 0 :

0=(11)n=(n0)(n1)+(n2)(n3)+=Sn(0,2)Sn(1,2)

moreover we can see taht Sn(0,2)=Sn(1,2)=2n1
while summing 2n+(1+i)n+(1i)n+0 them will leave us with

4((n0)+(n4)+(n8))=4Sn(1,4)=2(Sn(0,2)+Sn(0,4)S(2,4))

follow the property at Equating 2 from above Sn(0,4)S(2,4) can showed as the i part as R((i+1)n) following:

1+i=2eπi/4R((i+1)n)=2n/2cos((πn)/4)

now for n1 (mod 8) lets set in the last equating 1/2 summing all up together we get :

2Sn(1,4)=2n1+2(n2)/221/2=2n2+2(n3)/2

1.2 Problem 2.

Based on the following formula

(nk)=(nnk)i=0n(ni)2=i=0n(ni)(nni)

acombinatorial proof of the identity above, lets say we have 2n student that want to study the "Basic Combinatoric" course, but for some reason the university decide to schedule the course in class with only n seats. so we need to choose group of n student that could have a seat in the class (all the other will watch from zoom), so in total we have

(2nn)

on the other hand lets split all the student into 2 equal size group n, now we can choose k student from the first and nk from the second

(nk)(nnk)

because we don’t care about the order and want to cover all the sub-group sizes from each one of them, we will some up all the sub-group combination and get

i=0n(ni)(nni)=(2nn)=i=0n(ni)2

1.3 Problem 3.

Combinatorial proof of the identity. suppose some guy lets call him Schrödinger want to place r+1 cats in n+1 boxes one in each box (otherwise they will fight).he can do so while assuming all of them identical ,in total of

(n+1r+1)

different ways.
but for some reason our guy dont like to do things in the normal way ,he want to put the "boxes inside the cats" he claim that we can look at the first box if we decide to put cat inside we left with r cats to split in the rest n boxes, on the other hand if we decide to not put cat inside it, we will have r+1 cats to split in the rest boxes, hence

(n+1r+1)=(nr)+(nr+1)

now lets look at the case he decide to leave the box empty and we still left with r+1 cats to drop in n box and follow the same proses.

(n+1r+1)=(nr)+(nr+1)=(nr)+(n1r)+(n1r+1)

we can now follow the same prosses until we have r+1 cats to place in r+1 box, witch is equal 1.

(n+1r+1)=(nr)+(n1r)+(n2r)++(r+1r)+(r+1r+1)

now for some m lets look at the first and secound binomial coefficients of it

(m1)=1,(m2)=(m2m)1/2

hence for r=2 we will get the following equation

2(n+12+1)=2k=1n2(nk2)=k=1n(k2k)=k=1nk2k=1nk
2(n+12+1)+n2+n2=n+3n2+2n36=k=1nk2

For general k lets use again the idea described above (with the cats), at first we will the smallest coefficients(1) and the secound will be r and so one while n>r+1, so for general k we will find linear formula that nullify the coefficients of the formula polynomial

1.4 Problem 4

claim 1.1

c(p,k)0(mod p) when 0<k<p is prime

Proof

first look at c(n,k) binomial form

(pk)=p!k!(pk)!=p(p1)!k!(pk)!

under the assumption that p is the grateset prime that divde the following equation, so in total we get

0 mod p

and from the following claim we can immediately get

(1+x)p=1+c(x,p1)+xp1+xp(modp)

Theorem 1.2

Fermat’s Little Theorem (FLT). bpb (mod p) for any prime p and bFp

Proof

At the base case for b=0bk=b witch hold bkb(mod p)
now using the claim above and our indication for some b1 , we get

bp=(1+(b1))p1+(b1)p\textscmodpbp=1+(b1)p=1+b1b\textscmodp

because (b1)pb1 mod p

lets look at the following formula as the Multinomial theorem
"is a multinomial coefficient. The sum is taken over all combinations of nonnegative integer indices k1 through km such that the sum of all ki is n. That is, for each term in the expansion, the exponents of the xi must add up to n. Also, as with the binomial theorem, quantities of the form x0 that appear are taken to equal 1 ."
( from wikipedia )

(i=1mxi)n=i=1mki=n(nk1,k2,k3.....,km)i=1mxiki

Theorem 1.3

Fermat’s Little Theorem (FLT). second proof

Proof

The summation above is summing over all sequences of nonnegative integers, lets express α such as 1αp1 as a sum of
1s indicators to the power of (11+12+1+1α)p,we will get

αp=k1,k2,k3.....,kα(pk1,k2,k3.....,kα)

for prime p and kjp for any j, we have

\textsc(modp)0k1,k2,k3.....,kα(pk1,k2,k3.....,kα)

on the other hand for prime p and some kj=p, we have

\textsc(modp)1k1,k2,k3.....,kα(pk1,k2,k3.....,kα)

from the way we express α we know there is exactly α of this kj witch hold the theorem

Lets p be any prime p2,for round a carousel of p chairs we looking for the different colouring way using b colors , first if all the chairs apper in a row we looking in total of bp different colouring. there are b ways of colouring with the same colour , so we can claim now there is bpb ways to colouring chairs using at least 2 different colors. hence for prime p and some b using the "FLT" theorem we now that there is total p ways to route this carousel i.e bpb0 mod p.
and in total including the ways of couriering with only one color we get total

b+bpbp

distinct ways of painting the chairs.

1.5 Problem 5

For n integers a1,a2,an, not necessarily distinct, lets look at the following n integers

a1,a1+a2,a1+a2+a3,,a1+a2++an.

now lets devide the by n

a1n,a1+a2n,a1+a2+a3n,,a1+a2++ann.

lets look at the i reminisces for each one of them such as 0rin1in we can look at the following as

m1n+r1,m2n+r2,,mnn+rn.

if one of the ri is 0 we done.
otherwise according to the Pigeon-hole principle three is some ri=rj lets say that i<j so by reducing them we will get

k=1jakk=1iak=n(mjn+rminr)=n(mjnmin+0)=n(ai+1+ai+2+ajn)=k=i+1jak

and we find him.