OFFSET
1,2
EXAMPLE
Since the first 3 composites are 4, 6 and 8, the third term of the sequence is (1/4 + 1/6 + 1/8) * 4 * 6 * 8 = 48 + 32 + 24 = 104.
MAPLE
c:=proc(n) if isprime(n)=false then n else fi end: C:=[seq(c(n), n=2..35)]: a:=n->sum(1/C[k], k=1..n)*product(C[j], j=1..n): seq(a(n), n=1..20); # Emeric Deutsch, Oct 06 2005
MATHEMATICA
composite[n_] := FixedPoint[n + PrimePi[#] + 1&, n + PrimePi[n] + 1];
a[n_] := Sum[(1/composite[k]), {k, 1, n}]*Product[composite[j], {j, 1, n}];
Table[a[n], {n, 1, 20}] (* Jean-François Alcover, Jul 18 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 26 2005
EXTENSIONS
More terms from Emeric Deutsch, Oct 06 2005
STATUS
approved