> #Attendence quiz 14 ; > #THE NUMBER OF ATTENDANCE QUESTIONS WERE: 6 ; > ; > #Q1 ; > #Where and when was Herbert S. Wilf born? Look up his paper about "random generation of combinatorial objects." ; > # Herbert S. Wilf was born on June 13, 1931 in Philadelphia ; > ; > #Q2 ; > #Let m=Age of Donald Trump. n=age of Joe Biden. What is the probability that if you take a random lattice walk from[0,0] to [n,m] you will always stay in the region x>=y. ; > #Trump 74 yrs old and Biden 77 yrs old so ; > m:=74 m := 74 ; > n:=77 n := 77 ; > #NuGPaths(77,74) = 9212324866083276752554588862297816271201000 > #NuPaths(77, 74) = 179640334888623896674814482814807417288419500 ; > #%%/% = 2/39 ; > ; > #Q3 ; > #What is Wilf-zelberger pair? ; > #It is a pair of functions that can be used to certify combinatorial identities. ; > #Q4 ; > #What nationality was Catalan? What is the constant named after him? ; > #Catalan is French and Belgian. ; > #Catalan's constant is G = 0.915965594177219015054603514932384110774... ; > ; > #Q5 ; > #Do the same for the other [1, 1, -1, -1, 1] and get a set of 10 such lists that is the whole of Path(3, 2) ; > #[1,1,-1,-1,1] -->{[1,1,-1,-1,1],[1,-1,-1,1,1],[-1,-1,1,1,1],[-1,1,1,1,-1],[1,1,1,-1,-1]} > #OVERALL {[1,-1,1,-1,1],[-1,1,-1,1,1],[1,-1,1,1,-1],[-1,1,1,-1,1],[1,1,-1,1,-1],[1,1,-1,-1,1],[1,-1,-1,1,1],[-1,-1,1,1,1],[-1,1,1,1,-1],[1,1,1,-1,-1]} ; > ; > #Q6 ; > #You are in a circular track in the desert. At random places there are gas containers with random amounts of gas a1, a2, ..., ak such that the a1 + a2 + ... + ak gallons are exactly what you need to drive this track. [[0, 0.1],[0.2, 0.5], [0.7, 0.4]]. Prove that there exists a location on the circular track such that if you start there you don't run out of gas. device a method for it. ; > ; > # ;