This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 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; text; internal format)
 OFFSET 0,4 COMMENTS A ternary to binary switch. LINKS 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: A016459 A242309 A275663 * A114451 A142246 A080428 Adjacent sequences:  A060582 A060583 A060584 * A060586 A060587 A060588 KEYWORD base,nonn AUTHOR Henry Bottomley, Apr 04 2001 STATUS approved

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

Last modified December 9 03:27 EST 2019. Contains 329872 sequences. (Running on oeis4.)