First Long Fibonacci

Fibonacci numbers are built like this: the first two are 1, and each next number is the sum of the two before it. Write a function fibonacci_digit_index that finds the index of the first Fibonacci number containing exactly d digits. Indexing starts from 1, so the first number in the sequence is F1.

Примеры

Ввод
1
Вывод
1
Ввод
2
Вывод
7
Ввод
3
Вывод
12

Нужно реализовать

def fibonacci_digit_index(d: int) -> int:

Теги

math
PostgreSQLv16

Your code output will appear here

Visible tests
1
Input
1
Expected1
2
Input
2
Expected7
3
Input
3
Expected12
4
Input
1000
Expected4782
5
Input
100
Expected476
6
Input
-1
Expected1
Focus radio
Paused · SomaFM · Fluid