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”).

A054426
Inverse permutation to A054424.
5
1, 2, 3, 4, 7, 8, 5, 6, 13, 19, 14, 15, 20, 16, 9, 10, 23, 34, 29, 35, 50, 43, 24, 25, 44, 53, 38, 30, 39, 26, 11, 12, 33, 59, 48, 66, 97, 84, 49, 60, 108, 132, 98, 86, 109, 75, 36, 37, 76, 112, 89, 99, 135, 113, 61, 54, 91, 100, 69, 55, 62, 40, 17, 18, 47, 82, 73, 105, 154
OFFSET
1,2
FORMULA
a(j) = nthmember(j, A054424)
MAPLE
nthmember := proc(e, l) local k; if(member(e, l, 'k')) then RETURN(k) else RETURN(0); fi; end;
MATHEMATICA
a[n_] := If[p = Position[A054424, n]; p != {}, p[[1, 1]], 0]; (* Jean-François Alcover, Aug 20 2013 *)
CROSSREFS
Sequence in context: A368037 A373814 A351490 * A372133 A054424 A297164
KEYWORD
nonn
AUTHOR
Antti Karttunen
STATUS
approved