MAGIC117: Mathematical Foundations of AI