This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients docs@python, mark.dickinson, skyhein
Date 2017-10-11.16:07:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507738076.46.0.213398074469.issue31757@psf.upfronthosting.co.za>
In-reply-to
Content
Is there any particular reason you want to start with 1? While not universal, it's standard to define `Fib(0) = 0`, and to start the sequence at `0`. (And note that Python usually starts indexing things from 0, so it makes sense to start with `Fib(0)` rather than `Fib(1)`.)

In principle, one could define `Fib(0)=1`, `Fib(1)=1`, `Fib(1)=2`, and so on, but there's a strong reason not to do so: it breaks (or at least uglifies) many nice number-theoretic properties, like `gcd(Fib(m), Fib(n)) == Fib(gcd(m, n))`.
History
Date User Action Args
2017-10-11 16:07:56mark.dickinsonsetrecipients: + mark.dickinson, docs@python, skyhein
2017-10-11 16:07:56mark.dickinsonsetmessageid: <1507738076.46.0.213398074469.issue31757@psf.upfronthosting.co.za>
2017-10-11 16:07:56mark.dickinsonlinkissue31757 messages
2017-10-11 16:07:56mark.dickinsoncreate