OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) >= n+1 unless n is in A002283, in which case a(n)=n-1. - Robert Israel, Jan 30 2017
MAPLE
f:= proc(n) local k;
for k from 10^(1+ilog10(n))-1 by -1 do
if igcd(n, k) = 1 then return k fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Jan 30 2017
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Jul 19 2005
EXTENSIONS
More terms from David Wasserman, Jul 19 2005
STATUS
approved