OFFSET
1
COMMENTS
Question: What is the asymptotic mean of this and sequences like A341996 and its complement A368915, and related A368916? - Antti Karttunen, Jan 11 2024
Question: Is the asymptotic mean of this sequence 1 - Product_{p prime} (1 - 1/p^(1+p)) = 0.13585792767780221591...? (I.e. complementary to that of A368916). But see also A368911. - Antti Karttunen, Jan 29 2024
LINKS
FORMULA
EXAMPLE
a(12) = 0, because for both 12 and 12' = A003415(12) = 16 there is a prime p (in both cases p=2) such that p^p divides them.
a(15) = 1, because 15 = 3*5 has no such prime divisor p that p^p would divide it, while 15' = 8 is divisible by 2^2.
MATHEMATICA
d[0] = d[1] = 0; d[n_] := n * Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); q[n_] := AllTrue[FactorInteger[n], Last[#] < First[#] &]; q[1] = True; a[1] = 0; a[n_] := If[q[n] && ! q[d[n]], 1, 0]; Array[a, 100] (* Amiram Eldar, Jan 31 2023 *)
PROG
CROSSREFS
Characteristic function of A327934.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 31 2023
STATUS
approved