A beginner-friendly tour of the core math behind large language models: vectors, matrices, attention, probability, and optimization.