Could it be that the definition of A151764 should rather read "a(n) = f(f(n)), where f(n) = A071786(n)" (the given definition circularly uses A151764 itself)? I infer this from A071786(A071786(19)) = A071786(91) = 217. Hagen