# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a373157
Showing 1-1 of 1
%I A373157 #18 May 31 2024 05:50:07
%S A373157 1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,
%T A373157 1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,0,
%U A373157 1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1
%N A373157 a(n) = 1 if the 2-adic valuation of n is a multiple of 3, otherwise 0.
%H A373157 Antti Karttunen, Table of n, a(n) for n = 1..100000
%H A373157 Index entries for characteristic functions.
%F A373157 Multiplicative with a(p^e) = 1 if e is a multiple of 3, or p > 2, otherwise 0.
%F A373157 a(n) = [A007814(n) == 0 (mod 3)], where [ ] is the Iverson bracket.
%F A373157 a(n) = [A191255(n) = 0 or 3].
%F A373157 Sum_{k=1..n} a(k) ~ (4/7) * n. - _Amiram Eldar_, May 31 2024
%t A373157 a[n_] := If[Divisible[IntegerExponent[n, 2], 3], 1, 0]; Array[a, 100] (* _Amiram Eldar_, May 31 2024 *)
%o A373157 (PARI) A373157(n) = !(valuation(n,2)%3);
%Y A373157 Characteristic function of A191257.
%Y A373157 Cf. A001511, A007814, A191255.
%K A373157 nonn,mult,easy
%O A373157 1
%A A373157 _Antti Karttunen_, May 28 2024
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE