login
A255122
Simple self-inverse permutation of natural numbers: after zero, list each block of A255071(n) numbers in reverse order, from A255061(n+1) to A255062(n).
7
0, 1, 3, 2, 6, 5, 4, 11, 10, 9, 8, 7, 20, 19, 18, 17, 16, 15, 14, 13, 12, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 118
OFFSET
0,3
COMMENTS
Maps between A255056 and A255066. (Equally, between A255057 and A255067.)
FORMULA
a(n) = A255061(1+A255121(n)) - A255120(n).
PROG
(Scheme) (define (A255122 n) (- (A255061 (+ 1 (A255121 n))) (A255120 n)))
CROSSREFS
Similar permutations: A218602, A230432.
Sequence in context: A131968 A191740 A132665 * A191445 A277880 A132667
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 14 2015
STATUS
approved