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.

A036158 3^n mod 199.

This page as a plain text file.
%I A036158 #10 Jul 08 2025 21:36:24
%S A036158 1,3,9,27,81,44,132,197,193,181,145,37,111,134,4,12,36,108,125,176,
%T A036158 130,191,175,127,182,148,46,138,16,48,144,34,102,107,122,167,103,110,
%U A036158 131,194,184,154,64,192,178,136
%N A036158 3^n mod 199.
%C A036158 Periodic, with period = 198. - _Harvey P. Dale_, Jul 20 2016
%D A036158 I. M. Vinogradov, Elements of Number Theory, pp. 220 ff.
%p A036158 [ seq(primroot(ithprime(i))^j mod ithprime(i),j=0..100) ];
%t A036158 PowerMod[3,Range[0,50],199] (* _Harvey P. Dale_, Jul 20 2016 *)
%o A036158 (PARI) a(n)=lift(Mod(3,199)^n) \\ _Charles R Greathouse IV_, Mar 22 2016
%K A036158 nonn,easy
%O A036158 0,2
%A A036158 _N. J. A. Sloane_