A262083 Smallest possible prime factor of 10^k+n for any k.
2, 7, 2, 7, 2, 3, 2, 17, 2, 7, 2, 3, 2, 7, 2, 5, 2, 3, 2, 7, 2, 11, 2, 3, 2, 5, 2, 7, 2, 3, 2, 7, 2, 7, 2, 3, 2, 7, 2, 7, 2, 3, 2, 7, 2, 5, 2, 3, 2, 13, 2, 7, 2, 3, 2, 5, 2, 7, 2, 3, 2, 7, 2, 17, 2, 3, 2, 7, 2, 7, 2, 3, 2, 7, 2, 5, 2, 3, 2, 7, 2, 7, 2, 3, 2, 5, 2, 7, 2, 3, 2, 17, 2, 7, 2, 3, 2, 7, 2, 7, 2
Offset: 0
Keywords
Examples
a(1) = 7 since 10^k+1 is not divisible by 2,3 or 5 for all k but is divisible by 7 when k = 3 (i.e., 1001 = 7*11*13).
Links
- Robert G. Wilson v, Table of n, a(n) for n = 0..10000
- Robert G. Wilson v, Congruencies for A262083
Programs
-
Mathematica
p = Prime@ Range@ 25; f[n_] := Block[{k = 1, lst = {}}, While[k < 25, AppendTo[lst, Position[ Mod[ PowerMod[10, k, p] + n, p] 0, 1, 1][[1, 1]]]; k++]; lst = Union@ lst; Prime@ lst[[1]]]; Array[f, 101, 0] (* Robert G. Wilson v, Sep 13 2015 *)
Extensions
More terms from Robert G. Wilson v, Sep 13 2015
Comments