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

A366994
The largest divisor of n that is not a term of A322448.
4
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 8, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 24, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 32, 65, 66, 67, 68
OFFSET
1,2
COMMENTS
First differs from A365683 at n = 64.
The largest divisor of n whose prime factorization has exponents that are all either 1 or primes.
The number of these divisors is A366991(n) and their sum is A366992(n).
LINKS
FORMULA
Multiplicative with a(p) = p and a(p^e) = p^A007917(e) for e >= 2.
a(n) <= n, with equality if and only if n is not in A322448.
Sum_{k=1..n} a(k) ~ c * n^2, where c = (1/2) * Product_{p prime} f(1/p) = 0.48535795387619596052..., where f(x) = (1 - x) * (1 + Sum_{k>=1} x^(2*k-s(k))), s(k) = A007917(k) for k >= 2, and s(1) = 1.
MATHEMATICA
f[p_, e_] := p^If[e == 1, 1, NextPrime[e+1, -1]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 2] == 1, f[i, 1], f[i, 1]^precprime(f[i, 2]))); }
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Oct 31 2023
STATUS
approved