A121755 Numerator of Sum/Product of first n primes = Numerator[ A007504[n] / A002110[n] ].
1, 5, 1, 17, 2, 41, 29, 1, 10, 43, 16, 197, 1, 281, 4, 127, 4, 167, 284, 3, 356, 113, 1, 321, 2, 9, 8, 457, 4, 9, 4, 617, 2, 709, 1138, 809, 4, 1, 1, 147, 1, 1149, 1, 1277, 2, 1409, 317, 1, 4, 1, 5, 81, 1, 2027, 3169, 1, 1, 1, 3709, 7699, 307, 1655, 613, 8893, 4603, 1, 379, 1
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Table[Numerator[Sum[Prime[k],{k,1,n}]/Product[Prime[k],{k,1,n}]],{n,1,100}] Module[{prs=Prime[Range[70]]},Flatten[Numerator[Thread[ {Accumulate[ prs]/ Rest[ FoldList[Times,1,prs]]}]]]] (* This is several hundred times faster than the first Mathematica program in generating 5000 terms of the sequence *) (* Harvey P. Dale, Dec 29 2012 *)
Comments