A161603 Odd terms of sequence A161602.
13, 25, 29, 41, 49, 53, 57, 59, 61, 81, 89, 97, 101, 105, 109, 113, 115, 117, 121, 123, 125, 145, 161, 169, 177, 181, 185, 193, 197, 201, 205, 209, 211, 213, 217, 221, 225, 227, 229, 233, 235, 237, 241, 243, 245, 247, 249, 251, 253, 289, 305
Offset: 1
Examples
29 in binary is 11101. Its digital reversal is 10111, which is 23 in decimal. Since 29 > 23, and since 29 is odd, 29 is in this sequence.
Programs
-
Mathematica
Select[Range[1,311,2],#>FromDigits[Reverse[IntegerDigits[#,2]],2]&] (* Harvey P. Dale, Feb 20 2013 *)
-
Python
from itertools import count, islice def A161603_gen(startvalue=1): # generator of terms >= startvalue return filter(lambda n:n>int(bin(n)[-1:1:-1],2),count(max(startvalue|1,1),2)) A161603_list = list(islice(A161603_gen(),20)) # Chai Wah Wu, Jan 19 2023
Extensions
More terms from Max Alekseyev, Dec 10 2011