Menu Close

Given-a-set-S-a-1-a-n-a-k-Z-a-1-a-a-n-a-n-1-1-a-n-b-S-contains-all-integers-between-a-and-b-Are-there-more-even-or-odd-values-




Question Number 3055 by Filup last updated on 04/Dec/15
Given a set  S={a_1 , ..., a_n }  a_k ∈Z    a_1 =a,   a_n =a_(n−1) +1,   a_n =b    ∴S contains all integers between  a and b.    Are there more even or odd values?
GivenasetS={a1,,an}akZa1=a,an=an1+1,an=bScontainsallintegersbetweenaandb.Aretheremoreevenoroddvalues?
Answered by 123456 last updated on 04/Dec/15
a_1 =a  a_n =a_(n−1) +1  a_n =b   (b≥a)  a_1 =a  a_2 =a+1  ⋮  a_n =b=a+(b−a)  n=b−a+1  if n=b−a+1≡0(mod 2)⇒b−a≡1(mod 2)  a_1 ≡a_3 ≡a_5 ≡...≡a_(n−1)   a_2 ≡a_4 ≡a_6 ≡...≡a_n   so there same quantity of even and odd  if n=b−a+1≡1(mod 2)⇒b−a≡0(mod 2)  a_1 ≡a_3 ≡...≡a_(n−2) ≡a_n   a_2 ≡a_4 ≡...≡a_(n−1)   so its not have same quantinty, also  a_1  determines wich will have more  wich mean  there more numbers of parity of a_1
a1=aan=an1+1an=b(ba)a1=aa2=a+1an=b=a+(ba)n=ba+1ifn=ba+10(mod2)ba1(mod2)a1a3a5an1a2a4a6ansotheresamequantityofevenandoddifn=ba+11(mod2)ba0(mod2)a1a3an2ana2a4an1soitsnothavesamequantinty,alsoa1determineswichwillhavemorewichmeantheremorenumbersofparityofa1
Answered by Rasheed Soomro last updated on 04/Dec/15
Case−1:a,b∈E  More even numbers  Case−2: a,b∈O  More odd numbers  Case−3: One of a and b is odd other is even  Both are equal
Case1:a,bEMoreevennumbersCase2:a,bOMoreoddnumbersCase3:OneofaandbisoddotherisevenBothareequal

Leave a Reply

Your email address will not be published. Required fields are marked *