The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A123313 Maximum of greatest common divisors of pairs of distinct squarefree numbers not greater than the n-th squarefree number; a(1)=1. 2
1, 1, 1, 1, 3, 3, 5, 5, 5, 7, 7, 7, 7, 7, 11, 11, 13, 13, 15, 15, 15, 17, 17, 17, 19, 19, 19, 21, 21, 23, 23, 23, 23, 23, 23, 29, 29, 29, 31, 31, 33, 33, 33, 35, 35, 35, 37, 37, 39, 39, 41, 41, 41, 43, 43, 43, 43, 43, 47, 47, 47, 47, 51, 51, 51, 53, 53, 53, 55, 55, 55, 57, 57, 59 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
A123314(n) = #{k: a(k) = A005117(n)}.
LINKS
Eric Weisstein's World of Mathematics, Squarefree.
FORMULA
a(n) = Max(a(n-1), Max(GCD(A005117(n), A005117(k)): 1<=k<n).
MATHEMATICA
seq[max_] := Module[{sqf = Select[Range[max], SquareFreeQ], s, m}, m = Length[sqf]; s = Table[0, {m}]; s[[1]] = 1; Do[s[[k]] = Max[s[[k - 1]], Max[GCD[sqf[[k]], Take[sqf, k - 1]]]], {k, 2, m}]; s]; seq[120] (* Amiram Eldar, Feb 13 2021 *)
PROG
(PARI) mygcd(x, y) = if (x==y, 1, gcd(x, y));
sqf(n) = {my(v = List(), k=1); until (#v == n, if (issquarefree(k), listput(v, k)); k++); v; }
a(n) = vecmax(setbinop(mygcd, Vec(sqf(n)))); \\ Michel Marcus, Feb 13 2021
CROSSREFS
Sequence in context: A196386 A035158 A196172 * A131507 A203998 A257371
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 25 2006
EXTENSIONS
Name corrected by Amiram Eldar, Feb 13 2021
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 May 15 02:58 EDT 2024. Contains 372536 sequences. (Running on oeis4.)