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.

A000864 Deceptive nonprimes: composite numbers k that divide the repunit R_{k-1}.

Original entry on oeis.org

91, 259, 451, 481, 703, 1729, 2821, 2981, 3367, 4141, 4187, 5461, 6533, 6541, 6601, 7471, 7777, 8149, 8401, 8911, 10001, 11111, 12403, 13981, 14701, 14911, 15211, 15841, 19201, 21931, 22321, 24013, 24661, 27613, 29341, 34133
Offset: 1

Views

Author

Tim Ray (c268scm(AT)semovm.semo.edu)

Keywords

Comments

Francis and Ray call these numbers "deceptive primes".
Pseudoprimes to base 10, A005939, not divisible by 3. If k is in the sequence, then (10^k-1)/9 is in the sequence, by Steuerwald's theorem; see A005935. - Thomas Ordowski, Apr 10 2016
41041 is the first term that has four prime divisors. - Altug Alkan, Apr 10 2016

Crossrefs

Programs

  • Maple
    select(t -> not isprime(t) and (10&^(t-1) - 1) mod (9*t) = 0, [seq(t,t=3..10^5,2)]); # Robert Israel, Apr 10 2016
  • PARI
    p=5;forprime(q=7,1e5,forstep(n=p+2,q-2,2,if(n%5 && Mod(10,9*n)^(n-1)==1,print1(n", ")));p=q) \\ Charles R Greathouse IV, Jul 31 2011