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