OFFSET
1,3
EXAMPLE
The concatenation of the first 4 integers is 1234. The fourth prime is 7. Therefore a(4) = 1234 mod 7 = 2.
MATHEMATICA
a = {}; b = {}; For[n = 1, n < 80, n++, a = Join[a, IntegerDigits[n]]; AppendTo[b, Mod[FromDigits[a], Prime[n]]]]; b
CROSSREFS
KEYWORD
base,nonn,less
AUTHOR
Amarnath Murthy, Jun 17 2004
EXTENSIONS
Edited, corrected and extended by Stefan Steinerberger, Jun 23 2007
STATUS
approved