OFFSET
1,1
COMMENTS
a(n) = n + A079115(n).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
a(44) = a(2*2*11) = 47, as 45 = 3*3*5 and 46 = 2*23.
MATHEMATICA
lsn[n_]:=Module[{k=n+1}, While[!SquareFreeQ[k]||!CoprimeQ[n, k], k++]; k]; Array[lsn, 80] (* Harvey P. Dale, Jan 19 2017 *)
PROG
(PARI) A079114(n) = { my(h=n+1); while((!issquarefree(h))||(gcd(n, h)>1), h++); h; } \\ Antti Karttunen, Nov 23 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 25 2002
STATUS
approved