

A105108


Write numbers in ternary under each other; to get the next block of 3^k (k >= 0) terms of the sequence, start at 3^k, read diagonals in upward direction and convert to decimal.


3



0, 1, 2, 5, 3, 4, 8, 6, 7, 16, 11, 9, 10, 14, 12, 13, 17, 15, 25, 20, 18, 19, 23, 21, 22, 26, 24, 51, 34, 29, 27, 28, 32, 30, 31, 35, 33, 43, 38, 36, 37, 41, 39, 40, 44, 42, 52, 47, 45, 46, 50, 48, 49, 53, 78, 61, 56, 54, 55, 59, 57, 58, 62, 60, 70, 65, 63, 64, 68, 66, 67, 71, 69
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,3


COMMENTS

This is a permutation of the nonnegative integers.


REFERENCES

David Applegate, Benoit Cloitre, Philippe Deléham and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers, J. Integer Seq. 8 (2005), no. 3, Article 05.3.6, 15 pp.


LINKS

Table of n, a(n) for n=0..72.
David Applegate, Benoit Cloitre, Philippe Deléham and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers [pdf, ps].


EXAMPLE

..0
..1
..2
.10
.11
.12
.20
.21
.22
100 < Starting here, the upward diagonals
101 read 121,102,100,..., giving 16,11,9,...
102


CROSSREFS

Cf. A105027.
Sequence in context: A026258 A105530 A245815 * A118460 A064788 A099521
Adjacent sequences: A105105 A105106 A105107 * A105109 A105110 A105111


KEYWORD

nonn,base


AUTHOR

John W. Layman, Apr 07 2005


STATUS

approved



