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

A354999
a(n) = n divided by the smallest divisor d of n for which A344005(d) = A344005(n), where A344005(n) is the smallest positive integer m such that n divides m*(m+1).
4
1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 3, 1, 2, 1, 1, 1, 2, 1, 4, 3, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 4, 1, 2, 3, 1, 1, 6, 1, 1, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 5, 7, 3, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 4, 1, 2, 1, 8, 1, 2, 3, 1, 1, 6, 1, 5, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 2, 1, 1, 1, 2, 1, 4, 1, 2, 1, 1, 3
OFFSET
1,2
LINKS
FORMULA
a(n) = n / A354998(n).
MATHEMATICA
Module[{m = 1}, While[! Divisible[m*(m + 1), n], m++]; m]; a[n_] := Module[{sn = s[n], ds = Divisors[n]}, Do[If[s[d] == sn, Return[n/d]], {d, ds}]]; Array[a, 100] (* Amiram Eldar, Jun 17 2022 *)
PROG
(PARI)
A344005(n) = for(m=1, oo, if((m*(m+1))%n==0, return(m))); \\ From A344005
A354999(n) = { my(x=A344005(n)); fordiv(n, d, if(A344005(d)==x, return(n/d))); };
CROSSREFS
Cf. A344005, A354991, A354992, A354994 (positions of 1's), A354998.
Cf. also A344759, A346089.
Sequence in context: A076398 A086257 A161098 * A136177 A212178 A322818
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 17 2022
STATUS
approved