OFFSET
4,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 4..449
EXAMPLE
a(8) = 8! * (1/4 + 1/6 + 1/8) = 21840.
MAPLE
a:=proc(n) local s, i :s:=0: for i from 4 to n do if isprime(i)=false then s:=s+1/i else s:=s: fi od: n!*s; end; seq(a(n), n=4..23); # Emeric Deutsch, Jul 24 2005
PROG
(Python)
from sympy import factorial, isprime, Rational
def a(n): return factorial(n) * sum(Rational(1, c) for c in range(4, n+1) if not isprime(c))
print([a(n) for n in range(4, 23)]) # Michael S. Branicky, Jun 30 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Jul 24 2005
EXTENSIONS
More terms from Emeric Deutsch, Jul 24 2005
a(21) and beyond from Michael S. Branicky, Jun 30 2021
STATUS
approved