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

A350509
a(n) = n/A055874(n).
2
1, 1, 3, 2, 5, 2, 7, 4, 9, 5, 11, 3, 13, 7, 15, 8, 17, 6, 19, 10, 21, 11, 23, 6, 25, 13, 27, 14, 29, 10, 31, 16, 33, 17, 35, 9, 37, 19, 39, 20, 41, 14, 43, 22, 45, 23, 47, 12, 49, 25, 51, 26, 53, 18, 55, 28, 57, 29, 59, 10, 61, 31, 63, 32, 65, 22, 67, 34, 69, 35, 71, 18, 73, 37, 75
OFFSET
1,3
LINKS
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
Cf. A055874.
Sequence in context: A328579 A046524 A086571 * A133945 A124219 A103833
KEYWORD
nonn
AUTHOR
Michel Marcus, Jan 02 2022, after a suggestion from Charles Kusniec
STATUS
approved