OFFSET
1,2
COMMENTS
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..4546
MAPLE
a:= n-> add(ilcm(seq(i, i=n-k+1..n))/ilcm(seq(j, j=1..k)), k=1..n): seq(a(n), n=1..40); # Emeric Deutsch, Jan 30 2006
# second Maple program:
b:= proc(n) option remember; `if`(n=1, 1, ilcm(b(n-1), n)) end:
a:= proc(n) option remember; local k, r, s; r, s:= 0, 1;
for k to n do s:= ilcm(s, n-k+1); r:= r+s/b(k) od; r
end:
seq(a(n), n=0..40); # Alois P. Heinz, Mar 17 2018
MATHEMATICA
Table[Sum[(LCM@@(n-Range[0, k-1])/LCM@@Range[k]), {k, n}], {n, 33}] (* Jayanta Basu, May 22 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 31 2004
EXTENSIONS
Corrected and extended by Emeric Deutsch, Jan 30 2006
STATUS
approved