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.

A136356 Increasing sequence obtained by union of two sequences A136353 and {b(n)}, where b(n) is the smallest composite number m such that m-1 is prime and the set of distinct prime factors of m consists of the first n primes.

Original entry on oeis.org

4, 6, 9, 15, 30, 105, 420, 1155, 2310, 15015, 30030, 255255, 1021020, 4849845, 19399380, 111546435, 669278610, 9704539845, 38818159380, 100280245065, 601681470390, 14841476269620, 18551845337025, 152125131763605
Offset: 1

Views

Author

Enoch Haga, Dec 25 2007

Keywords

Comments

This sequence is different from A070826 and A118750.

Examples

			a(4)=15 because k=2 and prime factors are 3 and 5; 15 is odd and n-2=13, prime.
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=(c=Product[Prime[k],{k,n}]; For[m=1,!(!PrimeQ[c*m]&&PrimeQ[c*m-1]&&Length[FactorInteger[c*m]]==n),m++ ]; c*m);
    b[n_]:=(c=Product[Prime[k],{k,2,n+1}]; For[m=1,!(!PrimeQ[c(2m-1)]&&PrimeQ[c(2m-1)-2]&&Length[FactorInteger[c(2*m-1)]]==n),m++ ]; c(2m-1));
    Take[Union[Table[a[k],{k,24}],Table[b[k],{k,24}]],24] (* Farideh Firoozbakht, Aug 13 2009 *)

Extensions

Edited, corrected and extended by Farideh Firoozbakht, Aug 13 2009

A136354 a(n) is the smallest odd composite number m such that m+2 is prime and the set of distinct prime factors of m consists of the first n odd primes.

Original entry on oeis.org

9, 15, 105, 3465, 15015, 765765, 33948915, 334639305, 3234846615, 100280245065, 3710369067405, 1369126185872445, 32706903329175075, 307444891294245705, 211829530101735290745, 961380175077106319535, 762374478836145311391255
Offset: 1

Views

Author

Enoch Haga, Dec 25 2007

Keywords

Comments

This sequence is different from A070826 and A118750.

Examples

			a(1)=9 because k=1 with prime factor 3 and 9+2=11, prime
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=(c=Product[Prime[k],{k,2,n+1}]; For[m=1,!(!PrimeQ[c(2m-1)]&&PrimeQ[c(2m-1)+2]&&Length[FactorInteger[c(2m-1)]]==n),m++ ]; c(2m-1)); Table[a[n],{n,17}] (* Farideh Firoozbakht, Aug 12 2009 *)

Extensions

Edited, corrected and extended by Farideh Firoozbakht, Aug 12 2009
Showing 1-2 of 2 results.