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.

A077064 Squarefree numbers of form prime - 1.

Original entry on oeis.org

1, 2, 6, 10, 22, 30, 42, 46, 58, 66, 70, 78, 82, 102, 106, 130, 138, 166, 178, 190, 210, 222, 226, 238, 262, 282, 310, 330, 346, 358, 366, 382, 418, 430, 438, 442, 462, 466, 478, 498, 502, 546, 562, 570, 586, 598, 606, 618, 642, 646, 658, 682, 690, 718, 742
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 23 2002

Keywords

Comments

This sequence is infinite and its relative density in the sequence of primes is equal to Artin's constant (A005596): Product_{p prime} (1-1/(p*(p-1))) = 0.373955... (Victorovich, 2013). - Amiram Eldar, Dec 29 2020

Examples

			A005117(44) = 70 = 2*5*7 is a term as 70 = A000040(20)-1 = 71-1.
		

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[200]]-1,SquareFreeQ] (* Harvey P. Dale, Feb 09 2015 *)
  • PARI
    isok(n) = issquarefree(n) && isprime(n+1); \\ Michel Marcus, Mar 22 2016
    
  • PARI
    lista(nn) = forprime(p=2, nn, if (issquarefree(p-1), print1(p-1, ", "))); \\ Michel Marcus, Mar 22 2016

Extensions

Wrong formula removed by Amiram Eldar, Dec 29 2020