OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
MATHEMATICA
Floor[(Sqrt[5]^Range[0, 40]+1/2)] (* Vincenzo Librandi, Nov 19 2011 *)
PROG
(PARI) a(n)=round(sqrt(5)^n) \\ Charles R Greathouse IV, Nov 18 2011
(Magma) [Round(Sqrt(5)^n): n in [0..40]]; // Vincenzo Librandi, Nov 19 2011
(Python)
from math import isqrt
def A017920(n): return (m:=isqrt(k:=5**n))+(k-m*(m+1)>=1) # Chai Wah Wu, Jun 19 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved