OFFSET
0,2
COMMENTS
a(n) is the total length (rounded down to integer) of the elements of a variant of a 5-element fractal after n iterations, starting with 5 elements, each of whose length is 1/5 (in some units). See illustration in the Links. - Kival Ngaokrajang, Feb 26 2015
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Kival Ngaokrajang, Illustration of initial terms
MATHEMATICA
Floor[(Sqrt[5])^Range[0, 40]] (* Vincenzo Librandi, Nov 20 2011 *)
PROG
(PARI) a(n)=sqrtint(5^n) \\ Charles R Greathouse IV, Nov 18 2011
(Magma) [Floor(Sqrt(5^n)): n in [0..40]]; // Vincenzo Librandi, Nov 20 2011
(Python)
from math import isqrt
def A017919(n): return isqrt(5**n) # Chai Wah Wu, Jun 19 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved