OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
Wikipedia, Bitwise operation
MAPLE
a:= n-> Bits[And](n, (s-> parse(cat(s[-i]$i=1..length(s))))(""||n)):
seq(a(n), n=0..80);
MATHEMATICA
Table[BitAnd[n, FromDigits[Reverse[IntegerDigits[n]]]], {n, 0, 74}] (* Ivan N. Ianakiev, Apr 10 2015 *)
PROG
(PARI) a(n) = bitand(n, subst(Polrev(digits(n)), x, 10)); \\ Michel Marcus, Apr 10 2015
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Apr 09 2015
STATUS
approved