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.

A231372 Squarefree composite numbers k such that 10 is a primitive root for all prime factors of k.

Original entry on oeis.org

119, 133, 161, 203, 323, 329, 391, 413, 427, 437, 493, 551, 667, 679, 763, 791, 799, 893, 917, 1003, 1037, 1043, 1081, 1121, 1159, 1169, 1253, 1267, 1351, 1357, 1363, 1403, 1561, 1603, 1631, 1649, 1711, 1769, 1799, 1841, 1843, 1853, 1883, 1921, 2071, 2147, 2191
Offset: 1

Views

Author

Arkadiusz Wesolowski, Nov 08 2013

Keywords

Comments

If k is the smallest integer satisfying 10^k == 1 (mod p), we say that 10 has order k (mod p). If n is the product of distinct primes p_i, the period of 1/n in base b is the least common multiple of the orders of b (mod p_i), provided b and n are relatively prime.

Crossrefs

Subsequence of A024556.

Programs

  • Mathematica
    q[n_] := CompositeQ[n] && SquareFreeQ[n] && AllTrue[FactorInteger[n][[;;,1]],  MultiplicativeOrder[10, #] == # - 1 &]; Select[Range[2000], q] (* Amiram Eldar, Oct 03 2021 *)