Fishing with Rod Discussion Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: kewl math puzzle  (Read 3433 times)

casinoJim

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 269
kewl math puzzle
« on: January 29, 2005, 11:22:58 PM »

                        1
                       11
                       21
                    1211
                 111221
                 312211
              13112221

                next?

Casinojim
Logged
Never,never,never,never,never,never give up!

reach

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 119
  • Yard work can wait.
Re: kewl math puzzle
« Reply #1 on: January 29, 2005, 11:48:26 PM »

Hey CJ, I got the answer after staring at it for a while... I posted it but then thought, why spoil it for everybody.  But then again, if you don't have it figured out, the answer wouldn't make much sense anyway...
« Last Edit: January 29, 2005, 11:53:51 PM by reach »
Logged

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: kewl math puzzle
« Reply #2 on: January 30, 2005, 07:35:47 AM »

Ah, from "The Cukoo's Egg".

So given, you've figured out the answer to that....when does a 4 show in the "series"? 

reach

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 119
  • Yard work can wait.
Re: kewl math puzzle
« Reply #3 on: January 30, 2005, 01:22:14 PM »

The Cuckoo's Egg?

Did a few more by hand but quickly realized that was going nowhere, so...

perl -e '@a = (1); $s = 1; do { print "$s: ", @a, "\n"; @b = (); do { $d = shift @a; $c = 1; while ($a[0] == $d) { shift @a; $c++ }; push @b, $c, $d; } while $#a >= 0; $s++; @a = @b; } while 1;'

Still waiting for the answer to the question about the 4.  Apparently a) a Sun E450 isn't very fast, and b) it's quite a while.  :)

Edit:  Darned trick questions...
« Last Edit: January 30, 2005, 01:55:41 PM by reach »
Logged

DragonSpeed

  • Old Timer
  • *****
  • Offline Offline
  • Posts: 2980
  • Less Computer Time - More fishing Time...yes YOU!
    • My Pictures
Re: kewl math puzzle
« Reply #4 on: January 30, 2005, 04:56:56 PM »

The Cuckoo's Egg?
The Cuckoo's Egg
Quote
Edit:  Darned trick questions...
It's all about the abstract math  ;D

casinoJim

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 269
Re: kewl math puzzle
« Reply #5 on: January 30, 2005, 09:17:08 PM »

ok I will give you 1 more line...

1113213211

next? ;D

CJ.
Logged
Never,never,never,never,never,never give up!