login
A141071
a(n) = prime(n) mod (sum of base-10 digits of n) where prime(n) is the n-th prime.
0
0, 1, 2, 3, 1, 1, 3, 3, 5, 0, 1, 1, 1, 3, 5, 4, 3, 7, 7, 1, 1, 3, 3, 5, 6, 5, 4, 7, 10, 2, 3, 1, 5, 6, 5, 7, 7, 9, 11, 1, 4, 1, 2, 1, 8, 9, 2, 7, 6, 4, 5, 1, 1, 8, 7, 10, 5, 11, 11, 5, 3, 5, 1, 1, 5, 5, 6, 1, 2, 6, 1, 8, 7, 10
OFFSET
1,3
PROG
(PARI) a(n) = prime(n) % sumdigits(n); \\ Michel Marcus, Jan 05 2022
CROSSREFS
Sequence in context: A178795 A123185 A133569 * A004648 A265848 A139438
KEYWORD
nonn,base,less
AUTHOR
EXTENSIONS
Corrected and edited by D. S. McNeil, Mar 21 2009
STATUS
approved