login
Non-palindromic binary numbers whose reversal is a palindrome.
4

%I #34 May 21 2016 13:38:39

%S 10,100,110,1000,1010,1100,1110,10000,10010,10100,11000,11100,11110,

%T 100000,100010,100100,101000,101010,110000,110110,111000,111100,

%U 111110,1000000,1000010,1000100,1001000,1010000,1010100,1011010,1100000,1100110,1101100,1110000,1111000,1111100

%N Non-palindromic binary numbers whose reversal is a palindrome.

%H Chai Wah Wu, <a href="/A273245/b273245.txt">Table of n, a(n) for n = 1..10000</a>

%F Consists of binary palindromes (A006995) times nontrivial powers of 2, that is, 2^i, i>0. - _N. J. A. Sloane_, May 19 2016

%F a(n) = A007088(A272670(n)). - _R. J. Mathar_, May 20 2016

%p # see A272670 for the other subroutines

%p for n from 1 to 400 do

%p if isA272670(n) then

%p printf("%d,",A007088(n)) ;

%p end if;

%p end do: # _R. J. Mathar_, May 20 2016

%o (Python)

%o A273245_list = [int(m) for m in (bin(n)[2:] for n in range(1,10**4)) if m != m[::-1] and m.rstrip('0') == m[::-1].lstrip('0')] # _Chai Wah Wu_, May 21 2016

%Y Cf. A006995, A273329, A272670 (this sequence written in base 10), A057890 (and divided by 2).

%K nonn,easy,base

%O 1,1

%A _Giovanni Teofilatto_, May 18 2016