this post was submitted on 16 Jan 2025
162 points (93.5% liked)

NonCredibleDefense

3687 readers
128 users here now

Rules:

  1. Posts must abide by lemmy.world terms and conditions
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

Related communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 2 weeks ago* (last edited 2 weeks ago)

Just use the damn Pascal's triangle!

    1                  = 1 * 1   = (a+b)^0
   1 1                 = 1a + 1b = (a+b)^1
  1 2 1                = 1a^2 + 2ab + 1b^2 = (a+b)^2
 1 3 3 1               = 1a^3 + 3(a^2)b + 3a(b^2) + 1b^3 = (a+b)^3

By the way, I have submitted maths homework that had me continue it up to layer 25. The exercise didn't explicitly state we should use the binomial formula, so why work smart when you can work hard?

(To be fair I just used WolframAlpha to get the values. Had to write down all terms still and do some calculations.)