cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A077143 a(n) = floor(product of next n primes / sum of next n primes).

Original entry on oeis.org

1, 1, 32, 2448, 477595, 172497380, 95614528147, 83140881147429, 108654322319421237, 182417905018755002030, 368053025250427620488738, 1203788517781390541953924706, 3772396790098755787608470015082
Offset: 1

Views

Author

Amarnath Murthy, Oct 30 2002

Keywords

Crossrefs

Programs

  • Maple
    seq(floor(evalf(product(ithprime(i),i=n*(n-1)/2+1..n*(n+1)/2)/sum(ithprime(i),i=n*(n-1)/2+1..n*(n+1)/2),1000)),n=1..20);
  • Mathematica
    With[{nn=15},Floor[(Times@@#)/Total[#]]&/@TakeList[Prime[Range[(nn(nn+1))/ 2]],Range[nn]]] (* Requires Mathematica version 11 or later *) (* Harvey P. Dale, Jul 02 2018 *)

Extensions

More terms from Sascha Kurz, Jan 17 2003

A077144 a(n) = floor(product of next n composite numbers / sum of next n composite numbers).

Original entry on oeis.org

1, 3, 34, 960, 49500, 3538080, 404020145, 73780761600, 15590323138443, 4627678068946516, 1712182437990539536, 709629581496779727567, 434911027744132649793916, 234745940945367262055489361
Offset: 1

Views

Author

Amarnath Murthy, Oct 30 2002

Keywords

Crossrefs

Programs

  • Mathematica
    Module[{nn=200,cmps,tr},cmps=Select[Range[nn],CompositeQ];tr=Floor[(Sqrt[8Length[cmps]+1]-1)/2];Floor[(Times@@#)/ Total[ #]]&/@ TakeList[ cmps,Range[tr]]] (* Harvey P. Dale, Nov 03 2024 *)
  • PARI
    k=3; for(n=1, 20, p=1; s=0; for(i=1, n, while(isprime(k), k=k+1); p=p*k; s=s+k; k=k+1); print1(floor(p/s)","))

Extensions

More terms from Ralf Stephan, Mar 24 2003
Showing 1-2 of 2 results.