OFFSET
0,2
MATHEMATICA
Hofstadter14[n_Integer?Positive] := Hofstadter14[n] = Hofstadter14[Abs[n - Hofstadter14[n-1]]] + Hofstadter14[ Hofstadter14[Abs[n - Hofstadter14[n-4]]]] Hofstadter14[0] = Hofstadter14[1] = Hofstadter14[2]= Hofstadter14[3]= Hofstadter14[4]= 1 digits=3000 ta=Table[Hofstadter14[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 06 2003
STATUS
approved