login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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: A079228 A067535 A076752 * A058189 A361676 A069208
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 25 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)