OFFSET
0,3
MATHEMATICA
Hofstadter123[n_Integer?Positive] := Hofstadter123[n] = Hofstadter123[Abs[n - Hofstadter123[n-1]]] + Hofstadter123[Abs[n - Hofstadter123[n-2]]]+ Hofstadter123[Abs[n - Hofstadter123[n-3]]] Hofstadter123[0] =Hofstadter123[1] = Hofstadter123[2]= Hofstadter123[3]= 1 digits=30000 ta=Table[Hofstadter123[n], {n, 1, digits}]; b=Table[If[ta[[n]]-ta[[n-1]]==0, ta[[n]], 0], {n, 2, digits}]; c=Delete[Union[b], 1]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Oct 05 2003
STATUS
approved