OFFSET
1,1
EXAMPLE
A000040(25)=97: 97 mod 1 = 0, 97 mod 2 = 1, 97 mod 3 = 1, 97
mod 4 = 1, but 97 mod 5 = 2>1, therefore a(25)=5.
MATHEMATICA
smp1[n_]:=Module[{m=2}, While[Mod[n, m]<2, m++]; m]; smp1/@Prime[Range[120]] (* Harvey P. Dale, Aug 04 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 12 2004
STATUS
approved