login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A230432
Simple self-inverse permutation of natural numbers: after zero, list each block of A219661(n) numbers in reverse order, from A226061(n+1) to A219665(n).
6
0, 1, 3, 2, 8, 7, 6, 5, 4, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73
OFFSET
0,3
COMMENTS
This permutation can be used to map between the sequences A219666 and A230416. E.g. A219666(n) = A230416(a(n)) and vice versa: A230416(n) = A219666(a(n)).
FORMULA
a(n) = A219665(A230411(n+1)) - A230431(n) - 1.
PROG
(Scheme)
(define (A230432 n) (if (zero? n) n (- (A219665 (A230411 (+ 1 n))) (A230431 n) 1)))
CROSSREFS
Analogous sequence for binary system: A218602.
Sequence in context: A122339 A057163 A130918 * A195305 A327575 A328645
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 22 2013
STATUS
approved