OFFSET
1,2
COMMENTS
All terms of this sequence are even.
Number of terms less than or equal to 10^n: 1, 5, 26, 162, 1045, 5976, 38980, 249229, 1416583, 9381238, ..., . - Robert G. Wilson v, Aug 04 2008
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
EXAMPLE
36 in binary is 100100. The digit-reversal (with leading 0's) of this is 001001. These binary representations have no 1's in the same location (i.e., they can be added in binary without any carries). So 36 is in this sequence.
MATHEMATICA
fQ[n_] := Block[{id = IntegerDigits[n, 2]}, Max@ Union[id + Reverse@ id] < 2]; Select[2 Range[0, 134], fQ@# &] (* Robert G. Wilson v, Aug 04 2008 *)
PROG
(PARI) is(n) = my (b=if (n, binary(n), [0])); vecmax(b+Vecrev(b))<=1 \\ Rémy Sigrist, Jun 11 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jul 24 2008
EXTENSIONS
More terms from Robert G. Wilson v, Aug 04 2008
STATUS
approved