OFFSET
1,2
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = a[a[n - 1]] + a[n + 1 - 2*a[n - 1]]; b = Table[0, {100}]; Do[c = a[n]; If[c < 101 && b[[c]] == 0, b[[c]] = n], {n, 1, 10^3}]; b
CROSSREFS
Cf. A070868.
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, May 20 2002
STATUS
approved