A001311 Final 2 digits of 6^n.
1, 6, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96, 76, 56, 36, 16, 96
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for sequences related to final digits of numbers
- INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 202
Programs
-
Magma
[Modexp(6, n, 100): n in [0..110]]; // Vincenzo Librandi, Aug 15 2016
-
Mathematica
PowerMod[6, Range[0, 60], 100] (* Vincenzo Librandi, Aug 15 2016 *)
-
PARI
a(n)=lift(Mod(6,100)^n) \\ Charles R Greathouse IV, Dec 28 2012
Comments