Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Error in problem 2 #1

Open
olivier-grech opened this issue Oct 3, 2017 · 1 comment
Open

Error in problem 2 #1

olivier-grech opened this issue Oct 3, 2017 · 1 comment

Comments

@olivier-grech
Copy link

I believe there's an issue in problem 2.
The answer should be 4613733 and not 4613732.

I think the error comes from the fact that you forgot to add the very first term (1) of the Fibonacci numbers to your sum.

@zengin
Copy link
Owner

zengin commented Oct 3, 2017

Thanks for the comment Olivier.

It's been years since I wrote these exercises, but I remember tweaking the results so that projecteuler site would accept it.

You are right. Fibonacci starts with either 0, 1 or 1, 1, which both result in the same answer for this question. There is controversy between 0, 1 and 1, 1, but 1, 2 is clearly in the middle of the sequence and wrong. Projecteuler site should also correct their answers.

Feel free to send a pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants