# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a342460 Showing 1-1 of 1 %I A342460 #13 Mar 23 2021 16:16:56 %S A342460 0,1,1,1,1,0,1,0,0,0,1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,0,1,0,1,1,1,0,0,0, %T A342460 0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0, %U A342460 0,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,1 %N A342460 a(n) = 1 if n > 1 and is divisible by the sum of its prime factors (with repetition), otherwise 0. %C A342460 Characteristic function of A036844. a(n) - A010051(n) gives the characteristic function for A046346. %H A342460 Antti Karttunen, Table of n, a(n) for n = 1..65537 %H A342460 Index entries for characteristic functions %F A342460 a(1) = 0; and for n > 1, a(n) = [0=A238525(n)], where [ ] is the Iverson bracket. %t A342460 Array[Boole[Mod[#, Total@ Flatten[ConstantArray[#1, #2] & @@@ FactorInteger[#]]] == 0] - Boole[# == 1] &, 105] (* _Michael De Vlieger_, Mar 19 2021 *) %o A342460 (PARI) A342460(n) = if(n<2,0,my(f=factor(n)); !(n%((f[, 1]~*f[, 2])))); \\ After code in A001414 and A036844. %Y A342460 Cf. A001414, A010051, A036844, A046346, A238525. %K A342460 nonn %O A342460 1 %A A342460 _Antti Karttunen_, Mar 18 2021 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE