%I #27 Sep 08 2022 08:45:05
%S 1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,
%T 37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,
%U 35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19
%N a(n) = 7^n mod 44.
%H G. C. Greubel, <a href="/A070426/b070426.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,-1,1). - _R. J. Mathar_, Apr 20 2010
%F From _R. J. Mathar_, Apr 20 2010: (Start)
%F a(n) = a(n-1) - a(n-5) + a(n-6).
%F G.f.: ( -1 -6*x +2*x^2 -30*x^3 +10*x^4 -19*x^5 ) / ((x-1)*(1+x)(x^4-x^3+x^2-x+1) ). (End)
%F a(n) = a(n-10). - _G. C. Greubel_, Mar 22 2016
%t PowerMod[7,Range[0,80],44] (* or *) PadLeft[{},80,{1,7,5,35,25,43,37,39,9,19}] (* _Harvey P. Dale_, Oct 06 2011 *)
%o (Sage) [power_mod(7,n,44) for n in range(0,80)] # _Zerinvary Lajos_, Nov 27 2009
%o (PARI) a(n)=lift(Mod(7,44)^n) \\ _Charles R Greathouse IV_, Mar 22 2016
%o (Magma) [Modexp(7, n, 44): n in [0..100]]; // _Bruno Berselli_, Mar 22 2016
%K nonn,easy
%O 0,2
%A _N. J. A. Sloane_, May 12 2002