OFFSET
1,2
COMMENTS
By Fermat, all primes are members.
Numbers k not divisible by 4 or 25 such that the multiplicative order of 10 mod (k/gcd(k,10)) divides k-1. - Robert Israel, Feb 10 2019
10^2^k + 1, 10^5^k + 1 and 10^10^k + 1 are terms for k >= 0. - Jinyuan Wang, Feb 11 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
13 is a term because 10^13 = 13*769230769230 + 10.
MAPLE
filter:= n -> (10 &^ n - 10 mod n = 0):
select(filter, [$1..1000]); # Robert Israel, Feb 10 2019
MATHEMATICA
Select[Range[250], PowerMod[10, #, # ] == Mod[10, # ] &] (* Ray Chandler, Sep 02 2006 *)
PROG
(PARI) is(n) = Mod(10, n)^n == Mod(10, n) \\ Jinyuan Wang, Feb 11 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Sep 02 2006
STATUS
approved