OFFSET
1,4
COMMENTS
After 86 steps, enters a cycle of length 212 (see A177923).
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..1000
G. Back and M. Caragiu, The greatest prime factor and recurrent sequences, Fib. Q., 48 (2010), 358-362.
MAPLE
with(numtheory, divisors); A006530 := proc(n) local i, t1, t2, t3, t4, t5; t1 := divisors(n); t2 := convert(t1, list); t3 := sort(t2); t4 := nops(t3); t5 := 1; for i from 1 to t4 do if isprime(t3[t4+1-i]) then RETURN(t3[t4+1-i]); fi; od; 1; end;
M:=1000;
t1:=[1, 1, 1];
for n from 4 to M do
t1:=[op(t1), A006530(t1[n-1]+t1[n-2]+t1[n-3])]; od:
t1;
MATHEMATICA
nxt[{a_, b_, c_}]:={b, c, FactorInteger[a+b+c][[-1, 1]]}; NestList[nxt, {1, 1, 1}, 90][[All, 1]] (* Harvey P. Dale, Jul 17 2017 *)
PROG
(Haskell)
a177904 n = a177904_list !! (n-1)
a177904_list = 1 : 1 : 1 : (map a006530 $ zipWith (+)
a177904_list (tail $ zipWith (+) a177904_list $ tail a177904_list))
-- Reinhard Zumkeller, Jul 24 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 16 2010
STATUS
approved