#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 #from website: (rename this file p3FirstLast.txt, and add the answers, and email to ShaloshBEkhad@gmail.com by Sept. 15, 8:00pm) Q1. THE FIRST ATTENDANCE QUESTION WAS: What is a derangement? A1. MY ANSWER TO THE FIRST ATTENDANCE QUESTION IS: From Wikipedia, "In combinatorial mathematics, a derangement is a permutation of the elements of a set, such that no element appears in its original position. In other words, a derangement is a permutation that has no fixed points." Q2. THE SECOND ATTENDANCE QUESTION WAS: Give two examples of WtoS and StoW. A2. MY ANSWER TO THE SECOND ATTENDANCE QUESTION IS: # WtoS([0,1,1,0]) gives {2,3} # WtoS([1, 0, 0, 0, 1]) gives {1,5} # StoW({1, 2, 3}, 5) gives [1, 1, 1, 0, 0] # StoW({1, 4, 6}, 7}) gives [1, 0, 0, 1, 0, 1, 0]