login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A079114
Least squarefree number > n that is coprime to n.
2
2, 3, 5, 5, 6, 7, 10, 11, 10, 11, 13, 13, 14, 15, 17, 17, 19, 19, 21, 21, 22, 23, 26, 29, 26, 29, 29, 29, 30, 31, 33, 33, 34, 35, 37, 37, 38, 39, 41, 41, 42, 43, 46, 47, 46, 47, 51, 53, 51, 51, 53, 53, 55, 55, 57, 57, 58, 59, 61, 61, 62, 65, 65, 65, 66, 67, 69, 69, 70, 71, 73
OFFSET
1,1
COMMENTS
a(n) = n + A079115(n).
LINKS
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
Sequence in context: A373188 A067535 A076752 * A058189 A361676 A069208
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 25 2002
STATUS
approved