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!)
A071412 A002487 mod 3. 2
0, 1, 1, 2, 1, 0, 2, 0, 1, 1, 0, 2, 2, 2, 0, 1, 1, 2, 1, 1, 0, 2, 2, 1, 2, 1, 2, 2, 0, 1, 1, 2, 1, 0, 2, 0, 1, 2, 1, 1, 0, 2, 2, 1, 2, 0, 1, 0, 2, 0, 1, 0, 2, 1, 2, 2, 0, 1, 1, 2, 1, 0, 2, 0, 1, 1, 0, 2, 2, 2, 0, 1, 1, 0, 2, 0, 1, 2, 1, 1, 0, 2, 2, 1, 2, 0, 1, 0, 2, 2, 0, 1, 1, 1, 0, 2, 2, 2, 0, 1, 1, 1, 0, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
REFERENCES
E. Dijkstra, Selected Writings on Computing, Springer, 1982, p. 232 (sequence is called fusc).
LINKS
PROG
(Python)
from functools import reduce
def A071412(n): return sum(reduce(lambda x, y:(x[0], (x[0]+x[1])%3) if int(y) else ((x[0]+x[1])%3, x[1]), bin(n)[-1:2:-1], (1, 0)))%3 if n else 0 # Chai Wah Wu, May 18 2023
CROSSREFS
Sequence in context: A137696 A275731 A143614 * A080884 A354452 A362450
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 15 2002
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 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)