How do card and magic tricks use mathematics?

I am writing a paper on how magic uses math to do magic tricks and card tricks. Please let me know.