OFFSET
1,6
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Masanobu Kaneko, The Akiyama-Tanigawa algorithm for Bernoulli numbers, J. Integer Sequences, 3 (2000), Article 00.2.9.
FORMULA
c(n) = a(n+1) is multiplicative with c(2^e) = 2^(e-3) if e > 2 and 1 otherwise, c(3^e) = 3^(e-1), and c(p^e) = p^e if p >= 5. [corrected by Amiram Eldar, Nov 20 2022]
Sum_{k=1..n} a(k) ~ (301/1152) * n^2. - Amiram Eldar, Nov 20 2022
EXAMPLE
0, 1/60, 1/60, 1/70, 1/84, 5/504, 1/120, 7/990, 1/165, 3/572,...
MATHEMATICA
b[n_] := n/((n + 1) (n + 2)); Numerator[-Differences[Array[b, 100]]]
(* or *)
f[p_, e_] := p^e; f[2, e_] := If[e < 3, 1, 2^(e - 3)]; f[3, e_] := 3^(e - 1); a[1] = 0; a[n_] := Times @@ f @@@ FactorInteger[n - 1]; Array[a, 100] (* Amiram Eldar, Nov 20 2022 *)
CROSSREFS
KEYWORD
nonn,frac,easy,mult
AUTHOR
STATUS
reviewed