login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A081243
a(n) = Mod[n+(Mod[Prime[n],3]-1),10]
0
2, 1, 4, 4, 6, 6, 8, 8, 0, 1, 1, 2, 4, 4, 6, 7, 8, 8, 9, 1, 1, 2, 4, 5, 5, 7, 7, 9, 9, 1, 1, 3, 4, 4, 6, 6, 7, 8, 0, 1, 2, 2, 4, 4, 6, 6, 7, 8, 0, 0, 2, 3, 3, 5, 6, 7, 8, 8, 9, 1, 1, 3, 3, 5, 5, 7, 7, 8, 0, 0, 2, 3, 3, 4, 5, 7, 8, 8, 0, 0, 2, 2, 4, 4, 5, 7, 8, 8, 0, 0, 2, 3, 3, 5, 5, 7, 8, 9, 9, 0, 1, 3, 4, 5, 5
OFFSET
1,1
COMMENTS
Modulo 10 integer cycle on symbols {1,2,3,4,5,6,7,8,9,0} coded with the primes modulo 3.
The function : f[n_]=Mod[Prime[n],3]-1 is binary except for n=2.
MATHEMATICA
digits=200 a=Table[Mod[n+(Mod[Prime[n], 3]-1), 10], {n, 1, digits}]
CROSSREFS
Sequence in context: A108755 A093049 A326146 * A261297 A308034 A289918
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jan 17 2004
STATUS
approved