

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.


LINKS

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



KEYWORD

nonn,base


AUTHOR



STATUS

approved



