OFFSET
1,1
COMMENTS
By "reversal" of k's binary representation, it is meant: write k in binary, reverse the order of its digits, and read the result as a binary value.
This sequence contains all the positive even integers.
LINKS
Jonathan Frech, Table of n, a(n) for n = 1..10000
EXAMPLE
29 in binary is 11101. Its digital reversal is 10111, which is 23 in decimal. Since 29 > 23, 29 is in this sequence.
MATHEMATICA
Select[Range[109], # > IntegerReverse[#, 2] &] (* Michael De Vlieger, Apr 07 2021 *)
PROG
(PARI) isok(k) = k > fromdigits(Vecrev(binary(k)), 2); \\ Michel Marcus, Apr 06 2021
(Python)
from itertools import count, islice
def A161602_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:n>int(bin(n)[-1:1:-1], 2), count(max(startvalue, 1)))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jun 14 2009
EXTENSIONS
More terms from Max Alekseyev, Sep 11 2009
STATUS
approved