proposed
approved
proposed
approved
editing
proposed
nonn,look,changed
Antti Karttunen, <a href="/A098372/b098372.txt">Table of n, a(n) for n = 1..8192</a>
Antti Karttunen, <a href="/A098372/a098372.txt">Data supplement: n, a(n) computed for n = 1..65537</a>
a(n) = Max_{k=1..n-1} gcd(n, A098371(k)).
From Antti Karttunen, Mar 30 2021: (Start)
A098371The original definition was: a(n) = #Max_{k: a(=1..n) = } gcd(n, A098371(k))}.
but this generates terms that differ from ones in the data section at n=14, 26, 38, 74, etc.
Also, the original author also noted that: A098371(n) = #{k: a(n) = gcd(n, A098371(k))}.
but please see my notes in that sequence also.
(End)
Definition corrected to match with the data. - Antti Karttunen, Mar 30 2021
(PARI) A098372list(up_to) = { my(v=vector(up_to), y=vector(up_to)); v[1] = 1; y[1] = 1; for(n=2, up_to, my(m=1); for(k=1, n-1, m = max(m, gcd(n, v[k]))); y[n] = m; v[n] = sum(k=1, n-1, m == gcd(n, v[k]))); (y); }; \\ Antti Karttunen, Mar 30 2021
approved
editing
proposed
approved
editing
proposed