OFFSET
3,4
FORMULA
MATHEMATICA
a[n_] := GCD @@@ IntegerPartitions[n, {3}] // Max;
Table[a[n], {n, 3, 100}] (* Jean-François Alcover, Sep 21 2022 *)
PROG
(Python)
from math import gcd
def a(n): return max(gcd(i, j, n-i-j) for i in range(1, n//3+1) for j in range(i, n//3+1))
print([a(n) for n in range(3, 85)]) # Michael S. Branicky, Jun 26 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 25 2022
STATUS
approved