Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Zeckendorf representation

by Athanasius (Monsignor)
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 pondering the Monastery: (10)
As of 2014-10-21 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (106 votes), past polls