OFFSET
1
COMMENTS
Parity of A169611 (the sum of the 2-adic and 3-adic valuations of n). - Antti Karttunen, Jul 02 2024
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
Dimitri Hendriks, Frits G. W. Dannenberg, Jorg Endrullis, Mark Dow and Jan Willem Klop, Arithmetic Self-Similarity of Infinite Sequences, arXiv preprint 1201.3786 [math.CO], 2012. See Table 1.
FORMULA
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 5/12. - Amiram Eldar, Jul 03 2024
MATHEMATICA
A096268 = Join[{{0}}, SubstitutionSystem[{0 -> {0, 1}, 1 -> {0, 0}}, {1}, 6]] // Flatten;
a[n_] := Mod[Plus @@ IntegerExponent[n, {2, 3}], 2]; Array[a, 100] (* Amiram Eldar, Jul 03 2024 *)
PROG
(PARI) A182582(n) = ((valuation(n, 2)+valuation(n, 3))%2); \\ Antti Karttunen, Jul 02 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 06 2012
EXTENSIONS
Indexing of A096268 corrected in the definition, to match with the data - Antti Karttunen, Jul 02 2024
STATUS
approved