login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = 3^n mod 131.
2

%I #21 Sep 08 2022 08:46:16

%S 1,3,9,27,81,112,74,91,11,33,99,35,105,53,28,84,121,101,41,123,107,59,

%T 46,7,21,63,58,43,129,125,113,77,100,38,114,80,109,65,64,61,52,25,75,

%U 94,20,60,49,16,48,13,39,117,89,5,15,45,4,12,36,108,62,55,34,102,44,1

%N a(n) = 3^n mod 131.

%H Vincenzo Librandi, <a href="/A271351/b271351.txt">Table of n, a(n) for n = 0..1000</a>

%F a(n) = a(n-65).

%t PowerMod[3, Range[0, 100], 131]

%o (Magma) [Modexp(3, n, 131): n in [0..100]];

%o (PARI) a(n) = lift(Mod(3, 131)^n); \\ _Altug Alkan_, Apr 05 2016

%Y Cf. similar sequences listed in A271350.

%K nonn,easy

%O 0,2

%A _Vincenzo Librandi_, Apr 05 2016