OFFSET
1,1
COMMENTS
Or, for n>1, n + (largest prime divisor of n). [Anne Robinson, daughter of Herman P. Robinson, Oct 08 1981]
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
H. P. Robinson, Letter to N. J. A. Sloane, Oct 1981
FORMULA
a(n) = (n/lpf(n)+1)*lpf(n).
a(n) = n+lpf(n) where lpf=A006530 largest prime factor. For example, a(14)=14+7=21 (instead of ((14/7)+1)*7). - Philippe Lallouet (philip.lallouet(AT)wanadoo.fr), Jun 14 2007
MATHEMATICA
Table[n + Last@(First/@FactorInteger[n]), {n, 70}] (* Vladimir Joseph Stephan Orlovsky, Apr 08 2011 *)
PROG
(Haskell)
a070229 n = n + a006530 n
-- Reinhard Zumkeller, Nov 08 2015, Nov 14 2011
(PARI) vector(100, n, if(n>1, vecmax(factor(n)[, 1]), 1) + n) \\ Altug Alkan, Nov 13 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, May 07 2002
STATUS
approved