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-3 of 3 results.

A077145 a(n) = floor(product of next n primes / product of next n composite numbers).

Original entry on oeis.org

0, 0, 0, 3, 17, 106, 590, 3090, 21092, 127889, 734604, 6252468, 32854824, 279387963, 1909105118, 12319099520, 95059552565, 740652053314, 4888570540807, 40743793439712, 307640708818550, 2379664631112651, 17269477509704034, 165628134793721883
Offset: 1

Views

Author

Amarnath Murthy, Oct 30 2002

Keywords

Crossrefs

Formula

a(n) = floor(A007467(n)/A071221(n)). - Michel Marcus, May 08 2025

Extensions

a(7)-a(9) from Donald Sampson (marsquo(AT)hotmail.com), Dec 08 2003
More terms from Sean A. Irvine, May 07 2025

A113511 Product of first A000217(n) = n(n+1)/2 primes.

Original entry on oeis.org

1, 2, 30, 30030, 6469693230, 614889782588491410, 40729680599249024150621323470, 2566376117594999414479597815340071648394470, 225319534991831177328890236228992001350685163362356544091910
Offset: 0

Views

Author

Rick L. Shepherd, Jan 11 2006

Keywords

Comments

a(n) is the smallest squarefree product of a prime, 2-almost prime (semiprime), 3-almost prime, ..., n-almost prime. The analogous sequence without the squarefree condition is A006125(n), n>=2: 2,8,64,1024,32768,....
Cumulative product of A007467. - Franklin T. Adams-Watters, Mar 17 2007

Examples

			a(4) = 2*(3*5)*(7*11*13)*(17*19*23*29) = 6469693230, the product of the first A000217(4) = 4*5/2 = 10 primes. 6469693230 = 2*15*1001*215441, where 2 is prime, 15 is 2-almost prime, 1001 is 3-almost prime and 215441 is 4-almost prime.
(Of course if the prime factors are rearranged, other primes and almost primes in the same pattern give this same product.)
		

Crossrefs

Cf. A000217 (triangular numbers), A006125 (2^{n(n-1)/2}).

Programs

  • Mathematica
    nn=10;With[{prs=Prime[Range[(nn(nn+1))/2]]},Table[Times@@Take[prs,(n(n+1))/2], {n,0,nn}]] (* Harvey P. Dale, Sep 13 2011 *)
  • PARI
    a(n)=my(v=primes(n*(n+1)/2));prod(i=1,#v,v[i]) \\ Charles R Greathouse IV, Jan 13 2012

Formula

a(n) = prod(k=1, n*(n+1)/2, prime(k)).
a(n) = A002110(A000217(n)). - Franklin T. Adams-Watters, Mar 17 2007
log a(n) ~ n^2 log n. [Charles R Greathouse IV, Jan 13 2012]

A344482 Primes, each occurring twice, such that a(C(n)) = a(4*n-C(n)) = prime(n), where C is the Connell sequence (A001614).

Original entry on oeis.org

2, 3, 2, 5, 7, 3, 11, 5, 13, 17, 7, 19, 11, 23, 13, 29, 31, 17, 37, 19, 41, 23, 43, 29, 47, 53, 31, 59, 37, 61, 41, 67, 43, 71, 47, 73, 79, 53, 83, 59, 89, 61, 97, 67, 101, 71, 103, 73, 107, 109, 79, 113, 83, 127, 89, 131, 97, 137, 101, 139, 103, 149, 107, 151
Offset: 1

Views

Author

Paolo Xausa, Aug 16 2021

Keywords

Comments

Terms can be arranged in an irregular triangle read by rows in which row r is a permutation P of the primes in the interval [prime(s), prime(s+rlen-1)], where s = 1+(r-1)*(r-2)/2, rlen = 2*r-1 = A005408(r-1) and r >= 1 (see example).
P is the alternating (first term > second term < third term > fourth term < ...) permutation m -> 1, 1 -> 2, m+1 -> 3, 2 -> 4, m+2 -> 5, 3 -> 6, ..., rlen -> rlen where m = ceiling(rlen/2).
The triangle has the following properties.
Row lengths are the positive odd numbers (A005408).
First column is A078721.
Column 3 is A078722 (for n >= 1).
Column 5 is A078724 (for n >= 2).
Column 7 is A078725 (for n >= 3).
Each even column is equal to the column preceding it.
Row records (A011756) are in the right border.
Indices of row records are the positive terms of A000290.
Each row r contains r terms that are duplicated in the next row.
In each row, the sum of terms which are not already listed in the sequence give A007468.
For rows r >= 2, row sum is A007468(r)+A007468(r-1) and row product is A007467(r)*A007467(r-1).

Examples

			Written as an irregular triangle the sequence begins:
   2;
   3,   2,   5;
   7,   3,  11,   5,  13;
  17,   7,  19,  11,  23,  13,  29;
  31,  17,  37,  19,  41,  23,  43,  29,  47;
  53,  31,  59,  37,  61,  41,  67,  43,  71,  47,  73;
  79,  53,  83,  59,  89,  61,  97,  67, 101,  71, 103,  73, 107;
  ...
The triangle can be arranged as shown below so that, in every row, each odd position term is equal to the term immediately below it.
                2
             3  2  5
          7  3 11  5 13
      17  7 19 11 23 13 29
   31 17 37 19 41 23 43 29 47
              ...
		

Crossrefs

Programs

  • Mathematica
    nterms=64;a=ConstantArray[0,nterms];For[n=1;p=1,n<=nterms,n++,If[a[[n]]==0,a[[n]]=Prime[p];If[(d=4p-n)<=nterms,a[[d]]=a[[n]]];p++]]; a
    (* Second program, triangle rows *)
    nrows=8;Table[rlen=2r-1;Permute[Prime[Range[s=1+(r-1)(r-2)/2,s+rlen-1]],Join[Range[2,rlen,2],Range[1,rlen,2]]],{r,nrows}]

Formula

a(A001614(n)) = a(4*n-A001614(n)) = prime(n).
Showing 1-3 of 3 results.