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