OFFSET
0,2
COMMENTS
Has period 100. Sequence of last four digits has period 500. Cf. A000855 Final two digits of 2^n, has period 20.
LINKS
V. Raman and Vincenzo Librandi, Table of n, a(n) for n = 0..1000 (first 103 terms from V. Raman)
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,1).
FORMULA
For n > 54: a(n) = a(n-1) - a(n-50) + a(n-51). - Ray Chandler, Aug 09 2025
MATHEMATICA
Table[PowerMod[2, n, 1000], {n, 0, 1000}]
PROG
(PARI) for(i=0, 103, print(i" "(2^i)%1000)) \\ V. Raman, Sep 01 2012
(Magma) [Modexp(2, n, 1000): n in [0..110]]; // Vincenzo Librandi, Aug 16 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Zak Seidov, Mar 13 2007
STATUS
approved
