BARS::Two Road Signs Along Eastbound I-8 in California

While driving home from California on I-8, RoadHacker saw two road signs that were BARS, but he couldn't get a picture of them. He hopes to get a picture of them someday.

The first road sign said the following...

   +---------------------+
   | Winterhaven      31 |
   | Yuma             33 |
   +---------------------+
   the numbers are:  31  33

   rsHwyEval:  sqrt(31 + 33) = 8
   * This road sign is on eastbound I-8.

   rsHwyEval:  33 - 31 = cuberoot(8)
   * This road sign is on eastbound I-8.

   rs42Eval:  (318 + 338)8 = 42
   * 42 is the "Answer to Life, the Universe, and Everything"
   * Base-8 was used because this road sign was found on I-8.

The second road sign said the following...

   +---------------------+
   | Winterhaven      26 |
   | Yuma             28 |
   +---------------------+
   the numbers are:  26  28

   rsHwyEval:  28 - 26 = cuberoot(8)
   * This road sign is on eastbound I-8.

   rsAgeEval:  26 + 28 = 54
   * RoadHacker was 54 years young when he saw this road sign.

   BARSfunc rsStateEval:  reverse_digits(28 - spf(26)) = 31
   * California was the 31st state admitted to the Union.

   * spf(n) = the sum of the prime factors of n
     domain:  n must be a composite number
   * spf(26) = 2+13 = 15

   * reverse_digits(n) = the digits of n reversed
     domain:  n must be a prime number
   * reverse_digits(28 - 15) = reverse_digits(13) = 31

Creator: Gerald Thurman [gthurman@gmail.com]
Created: 11 July 2011

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.