login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A067111 Floor[ Product of first n primes / Sum of first n primes]. 2

%I #14 Sep 01 2023 15:38:55

%S 1,1,3,12,82,732,8801,125970,2230928,50152660,1253503063,37668721496,

%T 1278362451795,46557869507722,1874663971306376,85535849021496180,

%U 4369909886714119634,234108545627558824317,13835073153310329323730

%N Floor[ Product of first n primes / Sum of first n primes].

%H Harry J. Smith, <a href="/A067111/b067111.txt">Table of n, a(n) for n = 1..100</a>

%F a(n) = floor(A002110(n)/A007504(n)). - _Michel Marcus_, Jul 16 2020

%e a(4) = floor(2*3*5*7/17) = floor(210/17) = 12.

%t Table[ Floor[ Product[ Prime[i], {i, 1, n} ] / Sum[ Prime[i], {i, 1, n} ]], {n, 1, 22} ]

%t Module[{nn=20,p,pr,sm},p=Prime[Range[nn]];pr=FoldList[Times,p];sm=Accumulate[p];Floor[ pr/sm]] (* _Harvey P. Dale_, Sep 01 2023 *)

%o (PARI) { t=1; s=0; for (n=1, 100, p=prime(n); t*=p; s+=p; write("b067111.txt", n, " ", floor(t/s)) ) } \\ _Harry J. Smith_, May 23 2010

%Y Cf. A002110 (product) and A007504 (sum) of first n primes.

%K easy,nonn

%O 1,3

%A _Amarnath Murthy_, Jan 08 2002

%E More terms from _Robert G. Wilson v_, Jan 08 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 25 04:30 EDT 2024. Contains 375422 sequences. (Running on oeis4.)