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

A387362 Cyclic numbers k such that k+2 is also a cyclic number.

Original entry on oeis.org

1, 3, 5, 11, 13, 15, 17, 29, 31, 33, 35, 41, 51, 59, 65, 67, 69, 71, 77, 83, 85, 87, 89, 95, 101, 107, 113, 131, 137, 139, 141, 143, 149, 157, 159, 161, 177, 179, 185, 191, 197, 209, 211, 213, 215, 221, 227, 233, 239, 247, 249, 255, 257, 263, 265, 267, 269, 281, 293
Offset: 1

Views

Author

Amiram Eldar, Aug 27 2025

Keywords

Comments

All the lesser members of twin primes (A001359) are terms since every prime is a cyclic number (A003277).
Cohen (2025) conjectured and Pomerance (2025) proved that this sequence is infinite.

Crossrefs

Subsequence of A003277.
A001359 is a subsequence.

Programs

  • Mathematica
    cyclicQ[n_] := cyclicQ[n] = CoprimeQ[n, EulerPhi[n]]; Select[Range[1, 300, 2], And @@ cyclicQ[{#, # + 2}] &]
  • PARI
    iscyclic(k) = gcd(k, eulerphi(k)) == 1;
    isok(k) = k % 2 && iscyclic(k) && iscyclic(k+2);

Formula

The number of terms <= x is ~ 2 * C_2 * x / (exp(gamma) * log(log(log(x))))^2, where C_2 = A005597, and gamma = A001620 (Pomerance, 2025).
Showing 1-1 of 1 results.