OFFSET
1,4
COMMENTS
After 7 steps, enters a cycle of length 100. The complete cycle, ending at 31, is shown.
LINKS
Mihai Caragiu, Mathematical Trips.
Greg Back and Mihai Caragiu, The Greatest Prime Factor and Recurrent Sequences, Fibonacci Quart. 48 (2010), no. 4, 358-362.
MATHEMATICA
a[1] = 0; a[2] = a[3] = 1; a[n_] := a[n] = FactorInteger[a[n - 1] + a[n - 2] + a[n - 3]][[-1, 1]]; Array[a, 107] (* Robert G. Wilson v, Nov 17 2014 *)
nxt[{a_, b_, c_}]:={b, c, FactorInteger[a+b+c][[-1, 1]]}; NestList[nxt, {0, 1, 1}, 110][[All, 1]] (* Harvey P. Dale, Jul 17 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 19 2010
STATUS
approved