OFFSET
0,2
COMMENTS
Numerator of the decimal fraction of phi = 1.61803... truncated to a given number of decimal places.
The corresponding sequence for 1/phi = 0.61803... = phi-1 (also called the Golden Ratio) has a very similar behavior, because for both, the truncated decimal expansion can be simplified by the same factors 2^k*5^m.
EXAMPLE
a(3) = 161 is the numerator of 1.61 = 161/100.
a(4) = 809 is the numerator of 1.618 = 1618/1000 = 809/500.
MATHEMATICA
Floor[GoldenRatio #]/#&/@(10^Range[0, 20])//Numerator (* Harvey P. Dale, Apr 14 2023 *)
PROG
(PARI) a(n, c=sqrt(5)/2+.5)=numerator(c\.1^n/10^n) \\ M. F. Hasler, Sep 21 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, following a suggestion by Eric Angelini, Sep 21 2011
STATUS
approved