OFFSET
1,4
COMMENTS
Remainder if (2^n written backwards) is divided by 2^n.
EXAMPLE
a(4) = reverse(2^4) mod 2^4 = reverse(16) mod 16 = 61 mod 16 = 13.
MATHEMATICA
Table[Mod[FromDigits[Reverse[IntegerDigits[2^n]]], 2^n], {n, 1, 256}]
PROG
(Python)
def a(n): t = 2**n; return int(str(t)[::-1])%t
print([a(n) for n in range(1, 35)]) # Michael S. Branicky, Dec 12 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Jan 28 2005
STATUS
approved