login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A322334
Factorial expansion of log(3) = Sum_{n>=1} a(n)/n!.
5
1, 0, 0, 2, 1, 5, 0, 0, 0, 4, 3, 0, 0, 9, 6, 1, 11, 4, 13, 8, 9, 0, 16, 2, 14, 24, 9, 22, 5, 26, 4, 2, 31, 15, 17, 15, 8, 31, 18, 17, 20, 36, 20, 3, 41, 12, 7, 44, 44, 2, 38, 20, 44, 47, 3, 44, 19, 40, 9, 14, 1, 24, 15, 46, 0, 60, 37, 67, 63, 24, 64, 51, 30, 31, 59, 18, 68, 63, 22, 16, 45, 29, 43, 24, 13, 26, 77, 30, 37, 41, 3, 29, 25, 88, 12, 93, 56, 60, 60, 13
OFFSET
1,4
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
Cf. A002391 (decimal expansion), A016731 (continued fraction).
Cf. A067882 (log(2)), A322333 (log(5)), A068460 (log(7)), A068461 (log(11)).
Sequence in context: A227050 A093876 A375605 * A198371 A352559 A127477
KEYWORD
nonn
AUTHOR
G. C. Greubel, Dec 03 2018
STATUS
approved