cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A354782 Second digit from left in decimal expansion of 2^n (n >= 4).

This page as a plain text file.
%I A354782 #21 Jul 09 2025 04:59:16
%S A354782 6,2,4,2,5,1,0,0,0,1,6,2,5,3,6,2,0,0,1,3,6,3,7,3,6,3,0,1,2,5,7,4,8,3,
%T A354782 7,4,0,1,3,7,7,5,0,4,8,6,1,2,5,0,8,6,2,4,8,7,1,3,6,2,8,6,3,4,9,9,1,3,
%U A354782 7,4,8,7,5,5,0,0,2,4,8,6,9,8,7,5,0,1,2,4,9,9,9,9,9,5,1,3,2,5,0,0,0,0,1,6,2,4,2,5,1
%N A354782 Second digit from left in decimal expansion of 2^n (n >= 4).
%H A354782 Alois P. Heinz, <a href="/A354782/b354782.txt">Table of n, a(n) for n = 4..10000</a>
%e A354782 2^4 = 16, so a(4) = 6. 2^5 = 32, so a(5) = 2.
%p A354782 a:= n-> parse(""||(2^n)[2]):
%p A354782 seq(a(n), n=4..112);  # _Alois P. Heinz_, Jul 07 2022
%t A354782 A354782[n_]:=IntegerDigits[2^n][[2]];Array[A354782,100,4] (* _Paolo Xausa_, Oct 22 2023 *)
%o A354782 (Python)
%o A354782 def A354782(n): return int(str(1<<n)[1]) # _Chai Wah Wu_, Jul 07 2022
%Y A354782 Cf. A000079, A000689, A008952, A034887, A160590.
%K A354782 nonn,base
%O A354782 4,1
%A A354782 _N. J. A. Sloane_, Jul 07 2022, following a suggestion from Alexander Wajnberg