login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070382 a(n) = 5^n mod 34. 1
1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
From R. J. Mathar, Apr 20 2010: (Start)
a(n) = a(n-1) - a(n-8) + a(n-9).
G.f.: ( -1-4*x-20*x^2+2*x^3+10*x^4-18*x^5+12*x^6-8*x^7-7*x^8 ) / ( (x-1)*(1+x^8) ). (End)
a(n) = a(n-16). - G. C. Greubel, Mar 16 2016
MATHEMATICA
Mod[5^Range[0, 100], 34] (* Harvey P. Dale, Mar 01 2011 *)
PowerMod[5, Range[0, 100], 34] (* or *) PadRight[{}, 120, {1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7}] (* Harvey P. Dale, May 03 2018 *)
PROG
(Sage) [power_mod(5, n, 34) for n in range(0, 76)] # Zerinvary Lajos, Nov 26 2009
(PARI) a(n) = lift(Mod(5, 34)^n); \\ Altug Alkan, Mar 16 2016
CROSSREFS
Sequence in context: A070061 A070376 A036139 * A271379 A192493 A265973
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)