OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n+1) = A070229(a(n)). - Reinhard Zumkeller, Nov 07 2015
EXAMPLE
a(16) = 88 because a(15) is 77 whose largest prime factor is 11 so 77 + 11 = 88.
MAPLE
A123581:= proc(n) option remember;
local t;
t:= procname(n-1);
t + max(numtheory[factorset](t));
end proc;
A123581(1):= 3;
seq(A123581(n), n=1..100); # Robert Israel, May 18 2014
MATHEMATICA
a[1] = 3; a[n_] := a[n] = a[n - 1] + FactorInteger[a[n - 1]][[ -1, 1]]; Array[a, 56] (* Robert G. Wilson v *)
PROG
(PARI) {print1(a=3, ", "); for(n=2, 57, print1(a=a+vecmax(factor(a)[, 1]), ", "))} \\ Klaus Brockhaus, Nov 19 2006
(Haskell)
a123581 n = a123581_list !! (n-1)
a123581_list = iterate a070229 3 -- Reinhard Zumkeller, Nov 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ben Paul Thurston, Nov 12 2006
EXTENSIONS
More terms from Robert G. Wilson v and Klaus Brockhaus, Nov 18 2006
STATUS
approved