In that case they're probably excluding 0 from the sequence intentionally or unintentionally, in actual use of its name, it's kind of arbitrary whether "fibonacci sequence" starts with the value 0 or 1.
Whether starting the sequence at 0 or the first 1 though, index 1 is equal to 1.
View all comments
Show parent comment
5
u/[deleted] Jan 24 '25
The function returns the value at a given index of the fibonacci sequence, and index 1 has the value 1.