Skip to main content
3 of 7
added 592 characters in body
Jonathan Allan
  • 115.5k
  • 8
  • 68
  • 293

[Jelly],  8 7  6 [bytes]

-r‘ÆḞċ 

[Try it online!][TIO-j3x8ymyn]

How?

-r‘ÆḞċ - Link: non negative number, n - - literal -1 ‘ - increment n r - inclusive range = [-1,0,1,2,3,...,n] ÆḞ - Fibonacci = [ 0,1,1,2,3,...,fib(n+1)] ċ - count occurrence of n 

Notes:

Jonathan Allan
  • 115.5k
  • 8
  • 68
  • 293