OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor((1 + arcsinh(sqrt(5)*n/2)/log(phi))/2).
a(n) = floor((1 + arccosh(sqrt(5)*n/2)/log(phi))/2).
a(n) = floor((1 + log_phi(sqrt(5)*n))/2) for n >= 1, where phi = (1 + sqrt(5))/2.
G.f.: g(x) = 1/(1-x)*Sum_{k>=1} x^Fibonacci(2k-1).
a(n) = floor((1/2)*(1 + log_phi(sqrt(5)*n + 1))) for n >= 1.
MATHEMATICA
Table[Floor[(1 +ArcSinh[Sqrt[5]*n/2]/Log[GoldenRatio])/2], {n, 1, 100}] (* G. C. Greubel, Sep 09 2018 *)
PROG
(PARI) phi=(1+sqrt(5))/2; vector(100, n, floor((1 +asinh(sqrt(5)*n/2)/log(phi))/2)) \\ G. C. Greubel, Sep 09 2018
(Magma) phi:=(1+Sqrt(5))/2; [Floor((1 +Argsinh(Sqrt(5)*n/2)/Log(phi))/2): n in [1..100]]; // G. C. Greubel, Sep 09 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Hieronymus Fischer, May 24 2007, Jul 02 2007
STATUS
approved