|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
5,6
|
|
LINKS
|
|
|
MATHEMATICA
|
a[n_] := GCD @@@ IntegerPartitions[n, {5}] // Max;
|
|
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
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|