login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A295889 a(n) = 1 if binary weights of n and 3n have the same parity, 0 otherwise. 3
1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
LINKS
FORMULA
a(n) = A000035(1 + A000120(n) + A000120(3*n)).
a(n) = 1 - A295890(n).
a(A003714(n)) = A095111(n).
MATHEMATICA
a[n_] := If[Mod[DigitCount[n, 2, 1], 2] == Mod[DigitCount[3*n, 2, 1], 2], 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Feb 07 2023 *)
PROG
(Scheme) (define (A295889 n) (A000035 (+ 1 (A000120 n) (A000120 (* 3 n)))))
CROSSREFS
Cf. also A003714, A095111.
Sequence in context: A188578 A322217 A104105 * A347523 A143221 A325899
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Nov 30 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 11 05:02 EDT 2024. Contains 372388 sequences. (Running on oeis4.)