OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..425
MAPLE
a:= proc(n) option remember;
if n=1 then 1;
else add( `if`(gcd(n, j)=1, binomial(n, j)*a(j), 0), j=1..n-1);
end if; end proc;
seq(a(n), n = 1..30); # G. C. Greubel, Mar 08 2021
MATHEMATICA
a[n_] := Sum[If[GCD[n, k] == 1, Binomial[n, k] a[k], 0], {k, 1, n - 1}]; a[1] = 1; Table[a[n], {n, 1, 21}]
PROG
(Sage)
@CachedFunction
def a(n):
if n==1: return 1
else: return sum( kronecker_delta(gcd(n, j), 1)*binomial(n, j)*a(j) for j in (1..n-1) )
[a(n) for n in (1..30)] # G. C. Greubel, Mar 08 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 29 2019
STATUS
approved