OFFSET
4,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 4..10000
EXAMPLE
2^4 = 16, so a(4) = 6. 2^5 = 32, so a(5) = 2.
MAPLE
a:= n-> parse(""||(2^n)[2]):
seq(a(n), n=4..112); # Alois P. Heinz, Jul 07 2022
MATHEMATICA
PROG
(Python)
def A354782(n): return int(str(1<<n)[1]) # Chai Wah Wu, Jul 07 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jul 07 2022, following a suggestion from Alexander Wajnberg.
STATUS
approved