OFFSET
1,2
COMMENTS
If n is odd, a(n) = (n+1)/2. - Robert Israel, Oct 09 2016
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(10) = 10 - [10/3] = 7.
MAPLE
f:= proc(n) local m;
for m from 2 do if n mod m <> 0 then return n - iquo(n, m) fi od
end proc:
map(f, [$1..100]); # Robert Israel, Oct 09 2016
MATHEMATICA
(See A213633.)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 16 2012
STATUS
approved