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!)
A138973 a(n) = 8^n mod 7^n. 7

%I #20 Dec 07 2019 12:18:25

%S 0,1,15,169,1695,15961,26846,450066,5247614,13156907,226316077,

%T 680627620,13354327932,65310761853,328708074010,1951441519231,

%U 15611532153848,158125187800385,101848932467045,7328445851378156,35829776440278962,286638211522231696

%N a(n) = 8^n mod 7^n.

%H Seiichi Manyama, <a href="/A138973/b138973.txt">Table of n, a(n) for n = 0..1183</a>

%o (Sage) [power_mod(8,n,7^n) for n in range(0,22)] # _Zerinvary Lajos_, Nov 28 2009

%o (PARI) a(n) = if (n, lift(Mod(8, 7^n)^n), 0); \\ _Michel Marcus_, Feb 20 2018

%Y Cf. k^n mod (k-1)^n: A002380 (k=3), A064629 (k=4), A138589 (k=5), A138649 (k=6), A139786 (k=7), this sequence (k=8), A139733 (k=9).

%Y Cf. A000420, A001018.

%K nonn

%O 0,3

%A _N. J. A. Sloane_, May 20 2008

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 25 05:49 EDT 2024. Contains 371964 sequences. (Running on oeis4.)