OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
For n=4, a(4) = 2+4 divided by its largest prime factor = 6/3 = 2.
MATHEMATICA
f[n_] := n/FactorInteger[n][[-1, 1]]; a[1] = 1; a[n_] := a[n] = f[a[n - 1] + n]; Array[a, 100] (* Amiram Eldar, Jan 16 2020 *)
nxt[{n_, a_}]:={n+1, (a+n+1)/FactorInteger[a+n+1][[-1, 1]]}; NestList[nxt, {1, 1}, 90][[All, 2]] (* Harvey P. Dale, Nov 12 2022 *)
PROG
(Magma) [n eq 1 select 1 else (Self(n-1)+n) div Max(PrimeDivisors(Self(n-1)+n)): n in [1..85]]; // Marius A. Burtea, Feb 17 2020
(PARI) a(n) = if (n==1, 1, my(x=a(n-1)+n); x/vecmax(factor(x)[, 1])); \\ Michel Marcus, Feb 20 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ali Sada, Jan 16 2020
STATUS
approved