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!)
A167426 a(n) = 2^n mod 28. 0
1, 2, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4, 8, 16, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = a(n-3), n>=5. - G. C. Greubel, Jun 13 2016
G.f. 1+2*x -4*x^2*(1+2*x+4*x^2) / ( (x-1)*(1+x+x^2) ). - R. J. Mathar, Jun 18 2019
MATHEMATICA
Table[Mod[2^n, 28], {n, 0, 50}] (* G. C. Greubel, Jun 13 2016 *)
PowerMod[2, Range[0, 90], 28] (* or *) PadRight[{1, 2}, 90, {8, 16, 4}] (* Harvey P. Dale, Mar 09 2023 *)
PROG
(Sage) [power_mod(2, n, 28)for n in range(0, 84)] #
(PARI) a(n)=lift(Mod(2, 28)^n) \\ Charles R Greathouse IV, Mar 22 2016
CROSSREFS
Sequence in context: A352387 A110001 A302030 * A261702 A033491 A050076
KEYWORD
nonn,easy
AUTHOR
Zerinvary Lajos, Nov 03 2009
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 23 07:08 EDT 2024. Contains 371906 sequences. (Running on oeis4.)