A014392 Final 2 digits of 8^n.
1, 8, 64, 12, 96, 68, 44, 52, 16, 28, 24, 92, 36, 88, 4, 32, 56, 48, 84, 72, 76, 8, 64, 12, 96, 68, 44, 52, 16, 28, 24, 92, 36, 88, 4, 32, 56, 48, 84, 72, 76, 8, 64, 12, 96, 68, 44, 52, 16, 28, 24, 92, 36, 88, 4, 32, 56
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for sequences related to final digits of numbers
- Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1).
Programs
-
Magma
[Modexp(8, n, 100): n in [0..110]]; // Vincenzo Librandi, Aug 15 2016
-
Mathematica
PowerMod[8, Range[0, 60], 100] (* Vincenzo Librandi, Aug 15 2016 *) PadRight[{1},120,{76,8,64,12,96,68,44,52,16,28,24,92,36,88,4,32,56,48,84,72}] (* or *) LinearRecurrence[{1,0,0,0,0,0,0,0,0,-1,1},{1,8,64,12,96,68,44,52,16,28,24,92},120] (* Harvey P. Dale, Jul 22 2025 *)
Comments