OFFSET
1,1
COMMENTS
This sequence is a subsequence of A121014 & A121912. In fact the terms are composite terms n of these sequences such that gcd(n,10)=1. Theorem: If both numbers q & 2q-1 are primes(q is in the sequence A005382) and n=q*(2q-1) then 10^(n-1) == 1 (mod n) (n is in the sequence A005939) iff mod(q, 20) is in the set {1, 7, 19}. 91,703,12403,38503,79003,188191,269011,... are such terms. - Farideh Firoozbakht, Sep 15 2006
Composite numbers n such that 10^(n-1) == 1 (mod n). - Michel Lagneau, Feb 18 2012
Composite numbers n such that the number of digits of the period of 1/n divides n-1. A number is pseudoprime to base 10 if the number of digits of the period of ((n-1)!+1)/n divides n-1. - Davide Rotondo, Dec 16 2020
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, A12.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
C. Pomerance & N. J. A. Sloane, Correspondence, 1991
MATHEMATICA
Select[Range[15300], ! PrimeQ[ # ] && PowerMod[10, (# - 1), # ] == 1 &] (* Farideh Firoozbakht, Sep 15 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved