"Mathematica lets you throw integrals all over the place"
Assignment 1 (pdf format).
Riffle shuffle (Mathematica Notebook).
Assignment 2 (pdf format).
Assignment 3 (pdf format), Assignment 3 (nb format). (You'll find some useful related constructions in this notebook .)
Assignment 4 (nb format), also available in pdf format.