Math Behind Transformers and LLMs