Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A060585
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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. +0
3
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; listen)
OFFSET

0,4

COMMENT

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: A054263 A124874 A016459 this_sequence A114451 A080428 A120004

Adjacent sequences: A060582 A060583 A060584 this_sequence A060586 A060587 A060588

KEYWORD

base,nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research