Skip to main content
deleted 2 characters in body
Source Link
Seggan
  • 7.2k
  • 28
  • 53

Vyxal, 6 4 bytes

›ÞFẎḟ›ÞFḟ›

Try it Online!

-2 thanks to Deadcode

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

Vyxal, 6 4 bytes

›ÞFẎḟ›

Try it Online!

-2 thanks to Deadcode

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

Vyxal, 6 4 bytes

ÞFḟ›

Try it Online!

-2 thanks to Deadcode

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

added 162 characters in body
Source Link
Seggan
  • 7.2k
  • 28
  • 53

Vyxal, 66 4 bytes

›ÞFẎḟ›

Try it Online!Try it Online!

-2 thanks to Deadcode

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

›ÞFẎḟ› # The program points to this comment, why I don't know
›      # 1 + the input
 ÞF    # Infinite list of Fibonacci numbers
   Ẏ   # Take the first 1 + the input elements
    ḟ  # Index of the input in the list
     › # And increment the result

Vyxal, 6 bytes

›ÞFẎḟ›

Try it Online!

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

›ÞFẎḟ› # The program points to this comment, why I don't know
›      # 1 + the input
 ÞF    # Infinite list of Fibonacci numbers
   Ẏ   # Take the first 1 + the input elements
    ḟ  # Index of the input in the list
     › # And increment the result

Vyxal, 6 4 bytes

›ÞFẎḟ›

Try it Online!

-2 thanks to Deadcode

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

Source Link
Seggan
  • 7.2k
  • 28
  • 53

Vyxal, 6 bytes

›ÞFẎḟ›

Try it Online!

1 byte longer than it should be just because Vyxal's "Fibonacci sequence" builtin does not start with 0.

›ÞFẎḟ› # The program points to this comment, why I don't know
›      # 1 + the input
 ÞF    # Infinite list of Fibonacci numbers
   Ẏ   # Take the first 1 + the input elements
    ḟ  # Index of the input in the list
     › # And increment the result