A117733 Sum of the n-th primorial and the n-th compositorial number.
2, 3, 7, 10, 34, 54, 234, 402, 1938, 17490, 19590, 209670, 237390, 2933070, 43575630, 696759630, 697240110, 12541643310, 12550832490, 250832355690
Offset: 1
Keywords
Programs
-
Mathematica
f[n_] := If[PrimeQ[n] == True, 1, n] cf[0] = 1; cf[n_Integer?Positive] := cf[n] = f[n]*cf[n - 1] g[n_] := If[PrimeQ[n] == True, n, 1] p[0] = 1; p[n_Integer?Positive] := p[n] = g[n]*p[n - 1] a=Table[cf[n] + p[n], {n, 1, 20}]
Extensions
Offset and A-number corrected; comment rewritten - The Assoc Eds of the OEIS, Oct 20 2010
Comments