A130242 Minimal index k of a Lucas number such that Lucas(k)>=n (the 'upper' Lucas (A000032) Inverse).
0, 0, 0, 2, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
Offset: 0
Keywords
Examples
a(10)=5, since Lucas(5)=11>=10 but Lucas(4)=7<10.
Links
- G. C. Greubel, Table of n, a(n) for n = 0..5000
Crossrefs
Programs
-
Mathematica
Join[{0, 0, 0}, Table[Ceiling[Log[GoldenRatio, n + 1/2]], {n, 2, 50}]] (* G. C. Greubel, Dec 24 2017 *)
-
Python
from itertools import islice, count def A130242_gen(): # generator of terms yield from (0,0,0,2) a, b = 3, 4 for i in count(3): yield from (i,)*(b-a) a, b = b, a+b A130242_list = list(islice(A130242_gen(),40)) # Chai Wah Wu, Jun 08 2022
Comments