OFFSET
7,8
COMMENTS
Also largest divisor <= n/7 of n. - David A. Corneth, Jul 24 2022
LINKS
Alois P. Heinz, Table of n, a(n) for n = 7..5000
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, signum(t),
`if`(min(i, t)<1, 1, max(b(n, i-1, t),
igcd(b(n-i, min(n-i, i), t-1), i))))
end:
a:= n-> `if`(n<7, 0, b(n$2, 7)):
seq(a(n), n=7..200); # Alois P. Heinz, Jul 13 2022
MATHEMATICA
b[n_, i_, t_] := b[n, i, t] = If[n == 0, Sign[t],
If[Min[i, t] < 1, 1, Max[b[n, i - 1, t],
GCD[b[n - i, Min[n - i, i], t - 1], i]]]];
a[n_] := If[n < 7, 0, b[n, n, 7]];
Table[a[n], {n, 7, 100}] (* Jean-François Alcover, Jul 24 2022, after Alois P. Heinz *)
PROG
(PARI) a(n) = my(d = divisors(n)); d = select(x->x <= n\7, d); d[#d] \\ David A. Corneth, Jul 24 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jun 30 2022
STATUS
approved