Question: ( 7 ) Write a function triple riffle ( mylist ) which takes as input a list ( which for convenience we will always take
Write a function triple rifflemylist which takes as input a list which for convenience we will always take with length a multiple of and outputs the result of a way riffle shuffle as described i the lecture notes. For example: an input of range should output
Write a function triple riffle repeatmylistn which takes as input a list again with length a multiple of and outputs the result of doing a way riffle shuffle n times.
Write a function periodm which takes as input a number m which we will always take as a multiple of and outputs the smallest positive integer n so that triple riffle repeatlistrangemn listrangem
Discuss, with evidence, the outputs of your function period for different values of m writing your answer as a comment.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
