OFFSET
0,2
FORMULA
a(n) = Sum_{k=0..n-1} A002034(3^k). - Alois P. Heinz, Sep 14 2008
MAPLE
s:= proc(n) local m; m:= 1; while not type(m!/n, integer) do m:= m+1 od; m end: a:= n-> add(s(3^k), k=0..n-1): seq(a(n), n=1..70); # Alois P. Heinz, Sep 14 2008
MATHEMATICA
S[n_] := S[n] = Module[{k=1}, While[True, If[Divisible[k!, n], Return[k], k++] ] ];
a[n_] := S /@ Divisors[3^n] // Total;
a /@ Range[0, 49] (* Jean-François Alcover, Nov 17 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Norbert Hungerbuhler (buhler(AT)math.ethz.ch)
EXTENSIONS
More terms from Alois P. Heinz, Sep 14 2008
STATUS
approved