OFFSET
1,2
COMMENTS
Terms not congruent to 0 (mod 5) are: 1, 29, 24797, 24848081, 91381387, 274144161, ..., .
Terms not congruent to 0 (mod 25) are: 1, 5, 15, 29, 35, 24797, 47495, 1928595, 8807085, 10504785, 24848081, 91381387, 274144161, ..., .
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..55
EXAMPLE
a(5) equals 29 because 15152527 (mod 27) == 19, but 15152529 (mod 29) == 0.
MATHEMATICA
f[s_List] := Block[{k = s[[-1]] + 2, conc = FromDigits[ Flatten@ IntegerDigits@ s]}, While[ Mod[ conc*10^Floor[ Log[10, k] + 1] + k, k] != 0, k += 2]; Append[s, k]]; Nest[f, {1}, 25]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Sep 04 2013
STATUS
approved