login
A330682
a(n) = 1 if the 2-adic and 3-adic valuations of A025487(n) are equal, 0 otherwise.
5
1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0
OFFSET
1
FORMULA
a(n) = [A007814(A025487(n)) == A007949(A025487(n))], where [ ] is the Iverson bracket.
a(n) = A000035(A181815(n)) = A181815(n) mod 2.
a(A329897(n)) = 1, a(A329898(n)) = 0.
MATHEMATICA
s = {1}; Do[If[GreaterEqual @@ (f = FactorInteger[n])[[;; , 2]] && PrimePi[f[[-1, 1]]] == Length[f], AppendTo[s, If[Equal @@ IntegerExponent[n, {2, 3}], 1, 0]]], {n, 2, 50000}]; s (* Amiram Eldar, Jul 27 2023 *)
PROG
(PARI) A330682(n) = (A181815(n)%2);
CROSSREFS
Characteristic function of A329897.
Sequence in context: A304362 A368997 A373830 * A230135 A359836 A359835
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 24 2019
STATUS
approved