login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
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)
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
KEYWORD
base,easy,nonn
AUTHOR
Jeremy Gardiner, May 23 2010
STATUS
approved