login
Final 2 digits of 8^n.
2

%I #11 Sep 08 2022 08:44:39

%S 1,8,64,12,96,68,44,52,16,28,24,92,36,88,4,32,56,48,84,72,76,8,64,12,

%T 96,68,44,52,16,28,24,92,36,88,4,32,56,48,84,72,76,8,64,12,96,68,44,

%U 52,16,28,24,92,36,88,4,32,56

%N Final 2 digits of 8^n.

%H Vincenzo Librandi, <a href="/A014392/b014392.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Fi#final">Index entries for sequences related to final digits of numbers</a>

%t PowerMod[8, Range[0, 60], 100] (* _Vincenzo Librandi_, Aug 15 2016 *)

%o (Magma) [Modexp(8, n, 100): n in [0..110]]; // _Vincenzo Librandi_, Aug 15 2016

%K nonn,base,easy

%O 0,2

%A _N. J. A. Sloane_.