OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MAPLE
f1_d := proc(n) local st, period:
st := ithprime(n):
period := numtheory[order](10, st):
if (modp(period, 2) = 0) then
if (st-1 <> period) then
RETURN(st):
fi:
fi: end: seq(f1_d(n), n=1..200);
MATHEMATICA
Select[Prime[Range[200]], EvenQ[Length[RealDigits[1/#][[1, 1]]]] && MultiplicativeOrder[10, #] != # - 1 &] (* T. D. Noe, Oct 01 2012 *)
PROG
(PARI) is(p)=if(p>9 && isprime(p), my(o=znorder(Mod(10, p))); o%2==0 && o+1!=p, 0) \\ Charles R Greathouse IV, Oct 01 2012
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jani Melik, Feb 24 2011
STATUS
approved