this post was submitted on 12 Dec 2023
857 points (96.4% liked)

Memes

45759 readers
956 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
857
6÷2(1+2) (programming.dev)
submitted 11 months ago* (last edited 11 months ago) by wischi@programming.dev to c/memes@lemmy.ml
 

https://zeta.one/viral-math/

I wrote a (very long) blog post about those viral math problems and am looking for feedback, especially from people who are not convinced that the problem is ambiguous.

It's about a 30min read so thank you in advance if you really take the time to read it, but I think it's worth it if you joined such discussions in the past, but I'm probably biased because I wrote it :)

you are viewing a single comment's thread
view the rest of the comments
[–] SmartmanApps@programming.dev -1 points 8 months ago* (last edited 8 months ago) (1 children)

Ok, that's a start. In your simple example they are all equal, but they aren't all the same.

yn+y - 2 terms

y(n+1) - 1 term

y×(n +1) - 2 terms

To see the difference, now precede it with a division, like in the original question...

1÷yn+y=(1/yn)+y

1÷y(n+1)=1/(yn+y)

1÷y×(n +1)=(n +1)/y

Note that in the last one, compared to the second one, the (n+1) is now in the numerator instead of in the denominator. Welcome to why having the (2+2) in the numerator gives the wrong answer.

[–] Spacehooks@reddthat.com 2 points 8 months ago (1 children)

Good example wish we had better math format.
The granger issue is I thought multiple always happens first. But apparently it's what's left side first.

[–] SmartmanApps@programming.dev 0 points 8 months ago (1 children)

multiple always happens first. But apparently it’s what’s left side first

Multiplication and division are equal precedence (and done left to right) if that's what you're talking about, but the issue is that a(b+c) isn't "multiplication" at all, it's a bracketed term with a coefficient which is therefore subject to The Distributive Law, and is solved as part of solving Brackets, which is always first. Multiplication refers literally to multiplication signs, of which there are none in the original question. A Term is a product, which is the result of a multiplication, not something which is to be multiplied.

If a=2 and b=3, then...

axb=2x3 - 2 terms

ab=6 - 1 term

[–] Spacehooks@reddthat.com 1 points 8 months ago (1 children)

That is what I am talking about. I would have got 1 by doing 2(2+2) = 8 first. Not because of bracket but because of "implied multiplication."

What I am learning here: 8÷2(2+2) is not same as 8÷2×(2+2)

For several reasons:

  1. number next bracket is not the same as normal multiplication in rule book
  2. ÷ & × have right of way rule with whoever is left most wins.
[–] SmartmanApps@programming.dev 1 points 8 months ago (1 children)

I would have got 1 by doing 2(2+2) = 8 first. Not because of bracket but because of “implied multiplication.”

Yeah, right answer but wrong reason. There's no such thing as implicit multiplication.

What I am learning here: 8÷2(2+2) is not same as 8÷2×(2+2)

Correct, and that's because of Terms - 8÷2(2+2) is 2 terms, with the (2+2) in the denominator, but 8÷2×(2+2) is 3 terms, with the (2+2) in the numerator... hence why people get the wrong answer when they add an extra multiply in.

number next bracket is not the same as normal multiplication in rule book

Right, because it's not "multiplication" at all (only applies literally to multiplication signs), it's a coefficient of a bracketed term, which means we have to apply The Distributive Law as part of solving Brackets.

÷ & × have right of way rule with whoever is left most wins

Yeah, the actual rule is Left associativity, and going left to right is the easy way to obey that.

[–] Spacehooks@reddthat.com 2 points 8 months ago (1 children)

Lol only tool 30 years to get thos far on basics.

[–] SmartmanApps@programming.dev 1 points 8 months ago (1 children)

Just proves, never too late to learn :-)

[–] Spacehooks@reddthat.com 2 points 8 months ago (1 children)
[–] SmartmanApps@programming.dev -1 points 8 months ago

Thanks for the effort!

You're welcome.