login
A266122
a(n) = index of n in A266121 or 0 if n is not present in that sequence.
3
1, 5, 2, 4, 3, 10, 8, 6, 7, 17, 13, 9, 14, 11, 21, 16, 20, 35, 24, 15, 41, 29, 27, 12, 26, 18, 25, 23, 37, 30, 32, 34, 33, 50, 53, 36, 52, 77, 22, 19, 60, 65, 46, 31, 39, 95, 38, 28, 43, 63, 47, 40, 48, 78, 42, 76, 59, 71, 54, 81, 45, 86, 74, 51, 73, 117, 109, 111, 110, 83, 80, 70, 113, 145, 55, 79, 151, 82, 101, 49
OFFSET
1,2
COMMENTS
If A266121 is really a permutation of natural numbers, then this sequence is also, and no hypothetical zero-values are ever needed.
PROG
(Scheme, with code for A266121 defined with defineperm1-macro also required)
(define (A266122 n) (A266121 (- n))) ;; This returns inverse values of A266121 from its hidden cache.
CROSSREFS
Inverse: A266121 (with provisions, see comment section).
Sequence in context: A111145 A249920 A021660 * A064853 A177148 A188739
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Dec 23 2015
STATUS
approved