Skip to content

24-7 Today

Menu
  • Home
  • Ads Guide
  • Blogging
  • Sec Tips
  • SEO Strategies
Menu

A more interesting pictorial numerical puzzle

Posted on April 8, 2023 by 24-7

I am getting tired of these little pictorial numerical puzzles with the four equations, like one where three
chickens equals 60, one chicken plus two plates of two eggs per plate equals 26, and so on, until
the final equation is to evaluate some mathematical expression involving chickens, eggs, and bananas.

The solution generally requires that you remember the PEMDAS (in the US, or BODMAS elsewhere) rules for
order of operations especially that multiplication takes precedence over addition, and also that you
carefully count the number of eggs and number of bananas. I get 36.

OK, let me try to create a more interesting pictorial puzzle.

Mathematicians agree on the PEMDAS rules, although there are many situations that PEMDAS doesn’t handle.
Perhaps the most common is the unary minus operator as in -32. It is unary because unlike subtraction
that has two operands, the unary operator only has one. I think mathematicians would like to see the
unary operator as changing the sign of the argument, so that -32 equals -9, although some software,
most notably Excel, merrily calculate this as +9.

I don’t believe there is a single authority for all the order of operations cases. For example,
Excel, Google Search, and Wolfram Alpha do not always agree. I bet there are some pretty smart people
in those companies.

Nowadays I am doing
my fun calculations in the R computer language, so for the remainder of this post I will require R as
the authority.

So here is my attempt at a more interesting problem, but remember, you have to use the order of operation precedence rules of R: (Let me add the link to the first item:
https://www.facebook.com/watch/?v=10158293605695705 )

Do you want to try it before I reveal the R code?

The R code is:

apple
banana
kiwi
lemon
peach
pear
pineapple
strawberry
kiwi
watermelon
# watermelon

The ordering rules of R include:

  • Modular arithmetic is at the same level as multiplication:   &nbsp a mod b * c is   &nbsp (a mod b) *c
  • The obelus does not appear in R but is just a division symbol:   &nbsp a ÷ b * c = (a / b) * c
  • Repeated exponentiation goes right to left: a ^ b ^ c = a^(b^c); lots of disagreement outside R on this one
  • Logical AND preceds logical OR

Related

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

©2025 24-7 Today | Design: WordPress | Design: Facts