Talk:Zeckendorf number representation: Difference between revisions

Line 10:
==Perl 6, wrong fib sequence==
Could there also be a submission for Perl6 that used the sequence starting 1, 1, 2, ... The present example could be put second as an alternative, with the present description of how it differs from the task description if you like. --[[User:Paddy3118|Paddy3118]] 12:14, 11 October 2012 (UTC)
:If you're going to mandate the 1,1 sequence, then there's no point in having alternatives. On the other hand, you could mandate that the initial sequence must be specified by the user, perhaps defaulting to 1,1. But 0,1 and 1,2 are also sane, the latter because it eliminates the useless 0 on the end of every result, and the former because that's also a common way to define Fibonacci sequences. The 1,2 version is also appropriate under the notion that you're just using all the positive Fibonacci numbers in order, not the sequence itself. But as my grandmother-in-law used to say, this is all a tempest in a teabag. <tt>:-)</tt> --[[User:TimToady|TimToady]]
Anonymous user