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”).

A355366
Maximal GCD of five positive integers with sum n.
8
1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 3, 1, 4, 3, 2, 1, 4, 5, 2, 3, 4, 1, 6, 1, 4, 3, 2, 7, 6, 1, 2, 3, 8, 1, 7, 1, 4, 9, 2, 1, 8, 7, 10, 3, 4, 1, 9, 11, 8, 3, 2, 1, 12, 1, 2, 9, 8, 13, 11, 1, 4, 3, 14, 1, 12, 1, 2, 15, 4, 11, 13, 1, 16, 9, 2, 1, 14, 17, 2, 3, 11, 1
OFFSET
5,6
MATHEMATICA
a[n_] := GCD @@@ IntegerPartitions[n, {5}] // Max;
Table[a[n], {n, 5, 100}] (* Jean-François Alcover, Sep 21 2022 *)
PROG
(PARI) a(n) = { my (v=0); forpart(p=n, v=max(v, gcd(Vec(p))), , [5, 5]); v } \\ Rémy Sigrist, Jul 01 2022
CROSSREFS
Maximal GCD of k positive integers with sum n for k = 2..10: A032742 (k=2,n>=2), A355249 (k=3), A355319 (k=4), this sequence (k=5), A355368 (k=6), A355402 (k=7), A354598 (k=8), A354599 (k=9), A354601 (k=10).
Sequence in context: A059981 A033676 A095165 * A046805 A034880 A257977
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 29 2022
STATUS
approved