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”).
%I #31 Jan 16 2024 17:37:05
%S 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,
%T 0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,1,
%U 0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1
%N a(n) = 1 if there is at least one prime power p^e in the prime factorization of n such that p|e, otherwise 0.
%H Antti Karttunen, <a href="/A369070/b369070.txt">Table of n, a(n) for n = 1..100000</a>
%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
%F For n >= 1, a(n) <= A342023(n).
%F Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1 - Product_{p prime} (1 - (p - 1)/(p*(p^p - 1))) = 0.18824296270011399086... . - _Amiram Eldar_, Jan 15 2024
%p a:= n-> `if`(ormap(i-> irem(i[2], i[1])=0, ifactors(n)[2]), 1, 0):
%p seq(a(n), n=1..124); # _Alois P. Heinz_, Jan 15 2024
%t a[n_] := If[AnyTrue[FactorInteger[n], Divisible[Last[#], First[#]] &], 1, 0]; a[1] = 0; Array[a, 100] (* _Amiram Eldar_, Jan 15 2024 *)
%o (PARI) A369070(n) = { my(f=factor(n)); for(i=1, #f~, if(!(f[i,2]%f[i,1]), return(1))); (0); };
%o (SageMath)
%o def isA369070(n): return any(f[1] % f[0] == 0 for f in factor(n))
%o print([int(isA369070(n)) for n in range(1, 101)]) # _Peter Luschny_, Jan 16 2024
%Y Characteristic function of A342090.
%Y Cf. A342023.
%K nonn
%O 1
%A _Antti Karttunen_, Jan 15 2024