login
A284574
a(n) = A048724(n) mod 3.
3
0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2, 0, 2, 0, 0, 0, 2, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2, 0, 2, 2, 2, 2, 1, 2, 2, 0, 2, 0, 0, 0, 2, 2, 2, 0, 2, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2, 0, 2, 0, 0, 0, 2, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 1
OFFSET
0,4
FORMULA
a(n) = A048724(n) mod 3.
PROG
(Scheme) (define (A284574 n) (modulo (A048724 n) 3))
(Python)
def A284574(n): return (n^ n<<1)%3 # Chai Wah Wu, Jun 29 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 10 2017
STATUS
approved