#ATTENDANCE QUIZ FOR LECTURE 3 of Dr. Z.'s Math454(02) Rutgers University # Please Edit this .txt page with Answers #Email ShaloshBEkhad@gmail.com #Subject: p3 #with an attachment called #p3FirstLast.txt #(e.g. p3DoronZeilberger.txt) #Right after finishing watching the lecture but no later than Sept. 14, 2020, 8:00pm #Q1. THE FIRST ATTENDANCE QUESTION WAS: #What is a derangement? #A1. MY ANSWER TO THE FIRST ATTENDANCE QUESTION IS: #A derangement is a permutation of the elements of a set, such that no element appears in #its original position. Example: For set ABCD, BADC is a derangement. ADBC is not a #derangement because A is in its original position, the first spot. #Q2. THE SECOND ATTENDANCE QUESTION WAS: #Give two examples of WtoS and StoW. #A2. MY ANSWER TO THE SECOND ATTENDANCE QUESTION IS: #WtoS WtoS([1, 1, 1, 1, 0, 1]); #{1, 2, 3, 4, 6} WtoS([0, 0, 0, 0, 1, 1, 1]); #{5, 6, 7} #StoW StoW({2, 4, 6}, 6); #[0, 1, 0, 1, 0, 1] StoW({1, 2, 3, 4, 5}, 10); #[1, 1, 1, 1, 1, 0, 0, 0, 0, 0] #Q3. THE THIRD ATTENDANCE QUESTION WAS: #I did not see the third attendance question? #A3. MY ANSWER TO THE THIRD ATTENDANCE QUESTION IS: #I'm not sure, I did not see it.