Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A060587
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A060587 A ternary code: inverse of A060583. +0
4
0, 2, 1, 8, 7, 6, 4, 3, 5, 24, 26, 25, 23, 22, 21, 19, 18, 20, 12, 14, 13, 11, 10, 9, 16, 15, 17, 72, 74, 73, 80, 79, 78, 76, 75, 77, 69, 71, 70, 68, 67, 66, 64, 63, 65, 57, 59, 58, 56, 55, 54, 61, 60, 62, 36, 38, 37, 44, 43, 42, 40, 39, 41, 33, 35, 34, 32, 31, 30, 28, 27, 29 (list; graph; listen)
OFFSET

0,2

COMMENT

Write n in base 3, then (working from left to right) if the k-th digit of n is equal to the digit to the left of it then this is the k-th digit of a(n), otherwise the k-th digit of a(n) is the element of {0,1,2} which has not just been compared, then read result as a base 3 number.

LINKS

Index entries for sequences that are permutations of the natural numbers

FORMULA

a(n) =3a([n/3])+(-[n/3]-n mod 3) =3a([n/3])+A060588(n).

EXAMPLE

a(76) = 46 since 76 written in base 3 is 2211; this gives a first digit of 1( = 3-2-0) for a(n), a second digit of 2( = 2 = 2), a third digit of 0( = 3-1-2) and a fourth digit of 1( = 1 = 1); 1201 base 3 is 46.

CROSSREFS

Adjacent sequences: A060584 A060585 A060586 this_sequence A060588 A060589 A060590

Sequence in context: A019816 A082532 A049250 this_sequence A081800 A105672 A005489

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 October 12 15:26 EDT 2008. Contains 144830 sequences.


AT&T Labs Research