wikipedia is kinda the best math textbook ever
and mathdoctorbob is a lovable musclenerd of a hero:
https://www.youtube.com/watch?v=MVmgsATTg2Ialso patrickJMT:
https://www.youtube.com/watch?v=1pSD8cYyqUoso basically (a+b)^n => sum from k=0 to n of the quantity [ nCk * a^k * b^(n-k) ]
okay, that works. just need to know how to use choose functions to efficiently check coefficients.