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

A089189 Primes p such that p-1 is cubefree.

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 19, 23, 29, 31, 37, 43, 47, 53, 59, 61, 67, 71, 79, 83, 101, 103, 107, 127, 131, 139, 149, 151, 157, 167, 173, 179, 181, 191, 197, 199, 211, 223, 227, 229, 239, 263, 269, 277, 283, 293, 307, 311, 317, 331, 347, 349, 359, 367, 373, 383
Offset: 1

Views

Author

Cino Hilliard, Dec 08 2003 and Reinhard Zumkeller, Aug 11 2004

Keywords

Comments

The ratio of the count of primes p <= n such that p-1 is cubefree to the count of primes <= n converges to 0.69.. . This implies that roughly 70% of the primes less one are cubefree. This compares to about 0.37 of the primes less one are squarefree.
More accurately, the density of this sequence within the primes is Product_{p prime} (1-1/(p^2*(p-1))) = 0.697501... (A065414) (Mirsky, 1949). - Amiram Eldar, Feb 16 2021

Examples

			43 is included because 43-1 = 2*3*7.
41 is omitted because 41-1 = 2^3*5.
97 is omitted because 96 = 2^5*3 since higher powers are also tested for exclusion.
		

Crossrefs

Cf. A004709, A039787, A065414, A097380, A089194 (subsequence).

Programs

  • Haskell
    a097375 n = a097375_list !! (n-1)
    a097375_list = filter ((== 1) . a212793 . (subtract 1)) a000040_list
    -- Reinhard Zumkeller, May 27 2012
    
  • Maple
    filter:= p -> isprime(p) and max(seq(t[2],t=ifactors(p-1)[2]))<=2:
    select(filter, [2,seq(2*i+1,i=1..1000)]); # Robert Israel, Sep 11 2014
  • Mathematica
    f[n_]:=Module[{a=m=0},Do[If[FactorInteger[n][[m,2]]>2,a=1],{m,Length[FactorInteger[n]]}];a]; lst={};Do[p=Prime[n];If[f[p-1]==0,AppendTo[lst,p]],{n,6!}];lst (* Vladimir Joseph Stephan Orlovsky, Jul 15 2009 *)
    Select[Prime[Range[100]],Max[Transpose[FactorInteger[#-1]][[2]]]<3&] (* Harvey P. Dale, Feb 05 2012 *)
  • PARI
    lista(nn) = forprime(p=2, nn, f = factor(p-1)[,2]; if ((#f == 0) || vecmax(f) < 3, print1(p, ", "));) \\ Michel Marcus, Sep 11 2014

Formula

A212793(a(n) - 1) = 1. - Reinhard Zumkeller, May 27 2012

Extensions

Corrected and extended by Harvey P. Dale, Feb 05 2012

A097379 Numbers m such that 1+SquareFreeKernel(m) is prime.

Original entry on oeis.org

1, 2, 4, 6, 8, 10, 12, 16, 18, 20, 22, 24, 30, 32, 36, 40, 42, 44, 46, 48, 50, 54, 58, 60, 64, 66, 70, 72, 78, 80, 82, 84, 88, 90, 92, 96, 100, 102, 106, 108, 116, 120, 126, 128, 130, 132, 138, 140, 144, 150, 156, 160, 162, 164, 166, 168, 176, 178, 180, 184, 190, 192
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 11 2004

Keywords

Examples

			m = 100 = (2*5)^2 -> A076618(100) = 1+2*5 = 11 = A000040(5), therefore 100 is a term.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[200], PrimeQ[1 + Times @@ FactorInteger[#][[;; , 1]]] &] (* Amiram Eldar, Feb 01 2024 *)
  • PARI
    is(n) = isprime(1 + vecprod(factor(n)[, 1])); \\ Amiram Eldar, Feb 01 2024

Formula

A076618(a(n)) = A007947(a(n))+1 is prime.

A097381 Numbers m such that 1+SquareFreeKernel(m)*CubeFreeKernel(m) is prime.

Original entry on oeis.org

1, 2, 6, 10, 12, 14, 18, 24, 26, 48, 54, 60, 66, 74, 84, 94, 96, 98, 110, 120, 130, 132, 134, 146, 162, 168, 170, 192, 204, 206, 210, 230, 234, 240, 264, 300, 314, 326, 336, 372, 384, 386, 406, 408, 430, 466, 470, 474, 480, 486, 490, 528, 570, 588, 600, 634, 646
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 11 2004

Keywords

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := p^(1 + Min[e, 2]); s[1] = 2; s[n_] := 1 + Times @@ f @@@ FactorInteger[n]; Select[Range[650], PrimeQ[s[#]] &] (* Amiram Eldar, Feb 01 2024 *)
  • PARI
    is(n) = {my(f = factor(n)); isprime(1 + prod(i = 1, #f~, f[i, 1]^(1 + min(f[i, 2], 2))));} \\ Amiram Eldar, Feb 01 2024

Formula

A097378(a(n)) is prime.

A097377 a(n) = CubeFreeKernel(n) + 1.

Original entry on oeis.org

2, 3, 4, 5, 6, 7, 8, 5, 10, 11, 12, 13, 14, 15, 16, 5, 18, 19, 20, 21, 22, 23, 24, 13, 26, 27, 10, 29, 30, 31, 32, 5, 34, 35, 36, 37, 38, 39, 40, 21, 42, 43, 44, 45, 46, 47, 48, 13, 50, 51, 52, 53, 54, 19, 56, 29, 58, 59, 60, 61, 62, 63, 64, 5, 66, 67, 68, 69, 70, 71, 72, 37, 74, 75
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 11 2004

Keywords

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := p^Min[e, 2]; a[1] = 2; a[n_] := 1 + Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Feb 01 2024 *)
  • PARI
    a(n) = {my(f = factor(n)); 1 + prod(i = 1, #f~, f[i, 1]^min(f[i, 2], 2));} \\ Amiram Eldar, Feb 01 2024

Formula

a(n) = A007948(n) + 1.
Dirichlet g.f.: zeta(s) * (1 + Product_{p prime} (1 + 1/p^(s-1) - 1/p^s + 1/p^(2*s-2) - 1/p^(2*s-1)). - Amiram Eldar, Feb 01 2024
Showing 1-4 of 4 results.