login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A284557 a(n) = A048727(n) mod 3. 5
0, 1, 2, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0, 2, 0, 0, 1, 2, 0, 1, 0, 2, 2, 2, 0, 1, 1, 2, 0, 2, 0, 0, 2, 0, 1, 2, 0, 2, 2, 2, 0, 1, 1, 2, 1, 0, 1, 1, 0, 1, 2, 0, 2, 1, 1, 1, 0, 1, 1, 2, 0, 2, 0, 0, 1, 2, 0, 1, 2, 1, 1, 1, 0, 1, 1, 2, 1, 0, 1, 1, 0, 1, 2, 0, 2, 1, 1, 1, 2, 0, 0, 1, 2, 1, 2, 2, 0, 1, 2, 0, 1, 0, 0, 0, 1, 2, 2, 0, 2, 1, 2, 2, 0, 1, 2, 0, 2, 1, 1, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A048727(n) mod 3.
PROG
(Scheme)
(define (A284557 n) (modulo (A048727 n) 3))
(define (A284557 n) (A284270bi 3 n)) ;; For A284270bi see A284270.
(Python)
def A284557(n): return (n^ n<<1 ^ n<<2) % 3 # Chai Wah Wu, Jun 29 2022
CROSSREFS
Row 3 of array A284270 (after the initial zero).
Cf. A048727, A284555 (positions of zeros), A284574, A284575.
Sequence in context: A034876 A091393 A359735 * A182032 A265245 A110270
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 10 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)