[go: up one dir, main page]

login
A216125
a(n) = 5^n mod 1000.
1
1, 5, 25, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625, 125, 625
OFFSET
0,2
COMMENTS
Period = 2.
Also, continued fraction expansion of 1 + (150625 - 3*sqrt(43405))/755998. - Bruno Berselli, Sep 03 2012
FORMULA
G.f.: (1 + 5*x + 24*x^2 + 120*x^3 + 600*x^4)/((1 - x)*(1 + x)). - Bruno Berselli, Sep 03 2012
MATHEMATICA
PowerMod[5, Range[0, 100], 1000] (* Vincenzo Librandi, Aug 16 2016 *)
PROG
(PARI) for(i=0, 100, print(5^i%1000" "))
(Magma) [Modexp(5, n, 1000): n in [0..110]]; // Vincenzo Librandi, Aug 16 2016
CROSSREFS
Sequence in context: A269652 A163844 A250357 * A057831 A014946 A188580
KEYWORD
nonn,easy
AUTHOR
V. Raman, Sep 01 2012
EXTENSIONS
a(0) = 1 prepended and offset changed by Vincenzo Librandi, Aug 16 2016
Edited by Bruno Berselli, Aug 16 2016
More terms from Antti Karttunen, Sep 14 2017
STATUS
approved