Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Zeckendorf representation

by Athanasius (Chancellor)
on Aug 25, 2012 at 04:30 UTC ( #989689=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    zeck(1019377012345) = 956722026041 + 53316291173 + 7778742049 + 113490
    +3170 + 267914296 + 102334155 + 39088169 + 14930352 + 514229 + 196418 
    ++ 46368 + 17711 + 6765 + 987 + 377 + 55 + 21 + 8 + 1
    
  2. or download this
    my @zeck = zeck($ARGV[0]);
    print 'zeck(',  $ARGV[0], ') = ', join(' + ', @zeck), "\n";
    ...
    
        return ($prev, zeck($_[0] - $prev));
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989689]
help
Chatterbox?
[marto]: holli perfect
[ambrus]: Corion: four days a week? hmm
[Corion]: ambrus: I did that in 2012 and 2013, to try it out, and I found the available time to be worth more to me than the money
[Corion]: I've started that again this month (now forever instead of a limited time), and it already destresses me a lot
[holli]: There are Anti Vaxxer weeks at IKEA.
[Corion]: Of course, it's a 20% cut in the money I receive, while the work doesn't necessarily reduce at all, but my approach is to make the work take longer instead of fitting 5 days worth of work into 4
[holli]: 50% off all children coffins.
[Corion]: holli: Ooof :)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-09-21 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (249 votes). Check out past polls.

    Notices?