login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A060585 Write n in base 3, then (working from left to right) if the k-th digit of n is equal to the corresponding digit to the left of the k-th digit of a(n) then 1 is the k-th digit of a(n), otherwise the k-th digit of a(n) is 0, then read result as a base 2 number. 2
0, 1, 1, 3, 2, 3, 3, 3, 2, 6, 7, 7, 5, 4, 5, 7, 7, 6, 6, 7, 7, 7, 6, 7, 5, 5, 4, 12, 13, 13, 15, 14, 15, 15, 15, 14, 10, 11, 11, 9, 8, 9, 11, 11, 10, 14, 15, 15, 15, 14, 15, 13, 13, 12, 12, 13, 13, 15, 14, 15, 15, 15, 14, 14, 15, 15, 13, 12, 13, 15, 15, 14, 10, 11, 11, 11, 10, 11, 9, 9 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

COMMENTS

A ternary to binary switch.

FORMULA

a(n) = 2a([n/3])+A060584(n) = A060586(A060587(n)).

EXAMPLE

a(76) = 10 since 76 written in base 3 is 2211 and looking for changing digits produces 1010 which read as if in binary is 10.

CROSSREFS

k appears A001316(k) times in the sequence.

Sequence in context: A178775 A124874 A016459 * A114451 A142246 A080428

Adjacent sequences:  A060582 A060583 A060584 * A060586 A060587 A060588

KEYWORD

base,nonn

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Apr 04 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 21:51 EST 2012. Contains 205978 sequences.