cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A070370 a(n) = 5^n mod 16.

This page as a plain text file.
%I A070370 #42 Dec 14 2023 05:12:20
%S A070370 1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,
%T A070370 13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,
%U A070370 5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1,5,9,13,1
%N A070370 a(n) = 5^n mod 16.
%C A070370 Period 4: repeat [1, 5, 9, 13].
%H A070370 G. C. Greubel, <a href="/A070370/b070370.txt">Table of n, a(n) for n = 0..1000</a>
%H A070370 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,1). [_R. J. Mathar_, Apr 20 2010]
%F A070370 From _R. J. Mathar_, Apr 20 2010: (Start)
%F A070370 a(n) = a(n-4) for n>3.
%F A070370 G.f.: ( 1+5*x+9*x^2+13*x^3 ) / ( (1-x)*(1+x)*(1+x^2) ). (End)
%F A070370 a(n) = 7-2*((1+I)*(-I)^n+(1-I)*I^n+(-1)^n). - _Bruno Berselli_, Feb 07 2011
%F A070370 E.g.f.: 5*cosh(x) + 9*sinh(x) - 4*cos(x) - 4*sin(x). - _G. C. Greubel_, Mar 05 2016
%F A070370 a(n) = A130909(A000351(n)). - _Michel Marcus_, Jul 06 2016
%p A070370 seq(op([1, 5, 9, 13]), n=0..50); # _Wesley Ivan Hurt_, Jul 06 2016
%t A070370 Table[Mod[5^n, 16], {n, 0, 100}] (* _G. C. Greubel_, Mar 05 2016 *)
%o A070370 (Sage) [power_mod(5,n,16)for n in range(0,93)] # _Zerinvary Lajos_, Nov 26 2009
%o A070370 (PARI) a(n) = lift(Mod(5, 16)^n); \\ _Michel Marcus_, Mar 05 2016
%o A070370 (Magma) &cat [[1, 5, 9, 13]^^30]; // _Wesley Ivan Hurt_, Jul 06 2016
%Y A070370 Cf. A000351, A130909.
%K A070370 nonn,easy
%O A070370 0,2
%A A070370 _N. J. A. Sloane_, May 12 2002