OFFSET
1,2
LINKS
MATHEMATICA
max = 124; ClearAll[a, b]; A064736 = {a[1]=1, a[2]=2}; a[n_] := a[n] = (an = If[OddQ[n], a[n-1]*a[n+1], First[ Complement[ Range[n], A064736]]]; AppendTo[A064736, an]; an); Do[b[a[n]] = n, {n, 1, max}]; A064745 = Table[b[n], {n, 1, a[max]}] (* Jean-François Alcover, Aug 07 2012 *)
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a064745 n = fromJust (elemIndex n a064736_list) + 1
-- Reinhard Zumkeller, Mar 23 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 21 2001
EXTENSIONS
More terms from Vladeta Jovovic, Oct 21 2001
STATUS
approved