Uploaded November 2024 | Updated September 2026, 1 week ago
infinitely many people failed this interview question
We calculate infinity bang divided by infinity factorial. In other words, out of all permutations of infinitely many objects, how many are derangements? This is useful for example, for Secret santa, where you want to make sure that no one gets their own gifts, or for making sure that students don't grade their own exam. The answer will surprise you! For this, we use an explicit way of calculating the derangements by using the inclusion-exclusion principle, and finally by using a power series. This is a must-see for calculus and probability and combinatorics students, enjoy!
Derangements: youtu.be/lqB8eiy2X-E
YouTube: youtube.com/drpeyam
Instagram: instagram.com/peyamstagram
Teespring merch: dr-peyam.creator-spring.com/?
infinitely many people failed this interview question
We calculate infinity bang divided by infinity factorial. In other words, out of all permutations of infinitely many objects, how many are derangements? This is useful for example, for Secret santa, where you want to make sure that no one gets their own gifts, or for making sure that students don't grade their own exam. The answer will surprise you! For this, we use an explicit way of calculating the derangements by using the inclusion-exclusion principle, and finally by using a power series. This is a must-see for calculus and probability and combinatorics students, enjoy!
Derangements: youtu.be/lqB8eiy2X-E
YouTube: youtube.com/drpeyam
Instagram: instagram.com/peyamstagram
Teespring merch: dr-peyam.creator-spring.com/?


![e to a matrix
e to a matrix
You probably know about e to a number, but did you know you can calculate e to a matrix? We use eigenvalues and eigenvectors to calculate the matrix exponential e to the [-2 2;6 5]. In a later video (see Systems of ODE playlist) we can use that to solve the system of ODE x = Ax. Enjoy!
Subscribe to my channel: https://youtube.com/drpeyam
Instagram: https://www.instagram.com/peyamstagram/
Teespring merch: https://dr-peyam.creator-spring.com/? e to a matrix](https://i.ytimg.com/vi/lfOjYzDRIjU/mqdefault.jpg)







