login
A090722
a(n) = if 10 - Mod(Prime(n),10) == {1,3,7,9} respectively then {1,2,3,0}.
0
2, 0, 3, 2, 1, 3, 1, 0, 2, 0, 3, 2, 3, 1, 0, 2, 0, 3, 1, 3, 1, 2, 0, 3, 2, 1, 3, 2, 0, 2, 1, 1, 0, 2, 3, 2, 3, 1, 0, 0, 3, 2, 1, 0, 3, 2, 1, 3, 1, 0, 0, 2, 3, 1, 0, 2, 0, 3, 3, 2, 0, 3, 2, 0, 2, 2, 1, 3, 1, 2, 3, 1, 3, 1, 2, 0, 1, 1, 0, 0, 3, 1, 3, 1, 2, 0, 3, 2, 1, 2, 0, 1, 3, 1, 0, 3, 0, 2, 2, 3, 1, 0, 2, 2, 3
OFFSET
4,1
COMMENTS
Prime(n) (modulo ten) mapped from set {1,3,7,9} -> {0,3,2,1}.
MATHEMATICA
Table[ ReplaceAll[ Mod[ Prime[n], 10], {1 -> 0, 3 -> 3, 7 -> 2, 9 -> 1}], {n, 4, 108}]
CROSSREFS
Sequence in context: A026728 A241556 A242029 * A221879 A171934 A303205
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jan 18 2004
EXTENSIONS
Edited by Robert G. Wilson v, Jan 19 2004
STATUS
approved