OFFSET
1,2
COMMENTS
If A166133 is a permutation, as conjectured, then this is the inverse permutation.
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..10000
Ray Chandler, Table of n, a(n) for n=1..3743853 (55 MB)
PROG
(PARI) a(n)=for(i=1, #a166133, a166133[i]==n&&return(i)) \\ assumes a166133 defined as a vector, e.g., via {c=0; a166133=apply(t->eval(concat(Vec(t)[1+#Str(c++) .. -1])), readstr("/tmp/b166133.txt"))}
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a255833 = (+ 1) . fromJust . (`elemIndex` a166133_list)
-- Reinhard Zumkeller, Apr 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 01 2015
EXTENSIONS
Definition simplified by Franklin T. Adams-Watters, Apr 01 2015
STATUS
approved