OFFSET
1,4
LINKS
EXAMPLE
log(5) = 1 + 1/2! + 0/3! + 2/4! + 3/5! + 0/6! + 5/7! + 4/8! + ...
MATHEMATICA
With[{b = Log[5]}, Table[If[n == 1, Floor[b], Floor[n!*b] - n*Floor[(n - 1)!*b]], {n, 1, 100}]]
PROG
(PARI) default(realprecision, 250); b = log(5); for(n=1, 80, print1(if(n==1, floor(b), floor(n!*b) - n*floor((n-1)!*b)), ", "))
(Magma) SetDefaultRealField(RealField(250)); [Floor(Log(5))] cat [Floor(Factorial(n)*Log(5)) - n*Floor(Factorial((n-1))*Log(5)) : n in [2..80]];
(Sage)
def a(n):
if (n==1): return floor(log(5))
else: return expand(floor(factorial(n)*log(5)) - n*floor(factorial(n-1)*log(5)))
[a(n) for n in (1..80)]
CROSSREFS
KEYWORD
nonn
AUTHOR
G. C. Greubel, Dec 03 2018
STATUS
approved