OFFSET
2,2
COMMENTS
a(n)=n if Q(n) > Q(n-1), and a(n) =1 if Q(n) <= Q(n-1).
FORMULA
MATHEMATICA
Hofstadter[n_Integer?Positive] := Hofstadter[n] = Hofstadter[n - Hofstadter[n-1]] + Hofstadter[n - Hofstadter[n-2]] Hofstadter[1] = Hofstadter[2] = 1 digits=200 a=Table[If[Hofstadter[n]-Hofstadter[n-1]>0, n, 1], {n, 2, digits}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Nov 12 2003
STATUS
approved