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!)
A178226 Characteristic function of A154809 (numbers that are not binary palindromes) 2
0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n)=1 if n is in A154809, a(n)=0 otherwise.
Identical to parity of A086757 (Smallest prime p such that n is a palindrome in base p representation)
LINKS
FORMULA
a(n) = 1 - A178225(n). - Antti Karttunen, Dec 15 2017
MATHEMATICA
Table[If[IntegerDigits[n, 2]==Reverse[IntegerDigits[n, 2]], 0, 1], {n, 0, 120}] (* Harvey P. Dale, Aug 07 2023 *)
PROG
(PARI) A178226(n) = (n!=subst(Polrev(binary(n)), x, 2)); \\ Antti Karttunen, Dec 15 2017
CROSSREFS
Sequence in context: A144599 A144608 A327208 * A288622 A095907 A056051
KEYWORD
base,easy,nonn
AUTHOR
Jeremy Gardiner, May 23 2010
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 April 24 15:37 EDT 2024. Contains 371960 sequences. (Running on oeis4.)