1,3

The fourth recursive of HofstadterQ second term of A005185.

Table of n, a(n) for n=1..81.

Hofstadter[n_Integer?Positive] := Hofstadter[n] = Hofstadter[n - Hofstadter[n-1]] + Hofstadter[Hofstadter[Hofstadter[n - Hofstadter[n-2]]]] Hofstadter[1] = Hofstadter[2] = 1 digits=200 a1=Table[Hofstadter[n], {n, 1, digits}]

Cf. A005185, A081831.

Sequence in context: A130148 A341510 A196238 * A087831 A194327 A058032

Adjacent sequences: A087840 A087841 A087842 * A087844 A087845 A087846

nonn

Roger L. Bagula, Oct 07 2003

approved