OFFSET
1,1
EXAMPLE
a(11) = 4 because there are four elements in A104381 which differ from each other only in their last digit: 101, 103, 107, and 109.
MATHEMATICA
Length /@ SplitBy[QuotientRemainder[#, 10] & /@ {1}~Join~Select[Range[1200], PowerMod[10, # - 1, #] == 1 &], First] (* Michael De Vlieger, Aug 05 2018, after Harvey P. Dale at A104381 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alexander R. Povolotsky, Aug 05 2018
EXTENSIONS
More terms from Michael De Vlieger, Aug 05 2018
STATUS
approved