OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..5000
EXAMPLE
a(13) = a(11) + (largest prime dividing a(12)). a(12) is 38 and 19 is the largest prime dividing it. So a(13) = 23 + 19 = 42.
MATHEMATICA
Nest[Append[#, FactorInteger[#[[-1]]][[-1, 1]] + #[[-2]]] &, {1, 2}, 51] (* Ivan Neretin, Jun 18 2018 *)
PROG
(MuPAD) A := array(1..100); A[1] := 1; A[2] := 2; for n from 3 to 100 do s := ifactor(A[n-1]); b := s[nops(s)-1]; A[n] := A[n-2] + b; print(A[n]); end_for; // Stefan Steinerberger, Dec 02 2005
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 01 2005
EXTENSIONS
More terms from Stefan Steinerberger, Dec 02 2005
STATUS
approved