login
A080063
n mod (spf(n)+1), where spf(n) is the smallest prime dividing n (A020639).
2
1, 2, 3, 1, 5, 0, 7, 2, 1, 1, 11, 0, 13, 2, 3, 1, 17, 0, 19, 2, 1, 1, 23, 0, 1, 2, 3, 1, 29, 0, 31, 2, 1, 1, 5, 0, 37, 2, 3, 1, 41, 0, 43, 2, 1, 1, 47, 0, 1, 2, 3, 1, 53, 0, 1, 2, 1, 1, 59, 0, 61, 2, 3, 1, 5, 0, 67, 2, 1, 1, 71, 0, 73, 2, 3, 1, 5, 0, 79, 2, 1, 1, 83, 0, 1, 2, 3, 1, 89, 0, 3, 2, 1, 1, 5, 0
OFFSET
1,2
COMMENTS
a(n) = 0 iff n mod 6 = 0 (A008588);
a(n) = 2 iff n mod 6 = 2 (A016933);
for n>1: a(n)=n iff n is prime (A000040, A008578).
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 24 2003
STATUS
approved