Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Zeckendorf representation

by Athanasius (Prior)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-19 03:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (476 votes), past polls