OFFSET
1,1
COMMENTS
Additional terms are Phi(n,10)/gcd(n,Phi(n,10)) for the n in A007498, where Phi(n,10) is the n-th cyclotomic polynomial evaluated at 10.
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Samuel Yates, Period Lengths of Exactly One or Two Prime Numbers, J. Rec. Math., 18 (1985), 22-24.
LINKS
Max Alekseyev, Table of n, a(n) for n = 1..98 (terms 1..25 from T. D. Noe; terms 26..31 from Ray Chandler)
C. K. Caldwell, The Prime Glossary, unique prime
Makoto Kamada, Factorizations of Phi_n(10)
FORMULA
EXAMPLE
3 is the only prime p such that decimal expansion of 1/p has (nontrivial) period exactly 1.
MATHEMATICA
nmax = 50; periods = Reap[ Do[ p = Cyclotomic[n, 10] / GCD[n, Cyclotomic[n, 10]]; If[ PrimeQ[p], Sow[n]], {n, 1, nmax}]][[2, 1]]; Cyclotomic[#, 10] / GCD[#, Cyclotomic[#, 10]]& /@ periods // Prepend[#, 3]& (* Jean-François Alcover, Mar 28 2013 *)
CROSSREFS
KEYWORD
nonn,nice,easy,base
STATUS
approved