OFFSET
1,4
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
f[n_] := If[n == 1, 0, n]; a[n_] := f[Max[FactorInteger[n][[;; , 2]]]]; a[1] = 0; Array[a, 100]
PROG
(PARI) s(n) = if(n == 1, 0, n);
a(n) = if(n>1, s(vecmax(factor(n)[, 2])), 0);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, May 07 2024
STATUS
approved