OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
All numbers between n=46 and 58=n+12 are not squarefree or relatively prime to 46, therefore a(46)=12.
PROG
(Haskell)
a071890 n = a071888 n - n -- Reinhard Zumkeller, Jun 10 2012
(PARI) a8(n)=if(n<2, return(2)); my(m=n+1); while(gcd(m++, n)==1 || !issquarefree(m), ); m; \\ A071888
a(n) = a8(n) - n; \\ Michel Marcus, Feb 06 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 10 2002
STATUS
approved