OFFSET
1,3
LINKS
Michel Marcus, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[n_] := Module[{k = 1}, While[Divisible[n, k], k++]; k--; n/k]; Array[a, 100] (* Amiram Eldar, Jan 02 2022 *)
PROG
(PARI) a(n) = my(m = 1); while ((n % m) == 0, m++); n/(m-1);
(Python)
def a(n):
m = 2
while n%m == 0: m += 1
return n//(m-1)
print([a(n) for n in range(1, 80)]) # Michael S. Branicky, Jan 02 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Jan 02 2022, after a suggestion from Charles Kusniec
STATUS
approved