OFFSET
1,1
LINKS
EXAMPLE
log(11) = 2 + 0/2! + 2/3! + 1/4! + 2/5! + 4/6! + 3/7! + 3/8! + 1/9! + ...
MATHEMATICA
With[{b = Log[11]}, Table[If[n == 1, Floor[b], Floor[n!*b] - n*Floor[(n - 1)!*b]], {n, 1, 100}]] (* G. C. Greubel, Dec 05 2018 *)
PROG
(PARI) vector(30, n, if(n>1, t=t%1*n, t=log(11))\1) \\ Increase realprecision (e.g., \p500) to compute more terms. - M. F. Hasler, Nov 25 2018
(PARI) default(realprecision, 250); b = log(11); for(n=1, 80, print1(if(n==1, floor(b), floor(n!*b) - n*floor((n-1)!*b)), ", ")) \\ G. C. Greubel, Dec 05 2018
(Magma) SetDefaultRealField(RealField(250)); [Log(11)] cat [Floor(Factorial(n)*Log(11)) - n*Floor(Factorial((n-1))*Log(11)) : n in [2..80]]; // G. C. Greubel, Dec 05 2018
(Sage)
def a(n):
if n==1: return floor(log(11))
else: return expand(floor(factorial(n)*log(11)) - n*floor(factorial(n-1)*log(11)))
[a(n) for n in (1..80)] # G. C. Greubel, Dec 05 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 10 2002
EXTENSIONS
Name edited and keyword cons,easy removed by M. F. Hasler, Nov 26 2018
STATUS
approved