#math trivia #54 solution

One solution is 27 (= 33) and 81 (= 92).

The other is 8 (=23) and 100 (=102).

The problem can be solved by trial and error.  Here’s one approach.

Because both the cube and the square must be positive, the smallest value either can have is 1, and the largest is 107.  There are fewer cubes than squares, so just try the cubes in this range and see if there’s a matching square. 

The possibilities are:

  • 1 and 107 — not a square
  • 8 and 100 — correct
  • 27 and 81 — correct
  • 64 and 44 — not a square

At most, this takes on the order of the cube root of 2n operations to solve in general, where n is the midpoint value.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s