login
a(n) = 9^n mod 6^n.
1

%I #11 Jan 13 2024 17:15:22

%S 0,3,9,81,81,4617,18225,24057,1056321,4468041,40212369,180512793,

%T 1624615137,8091189225,72820703025,420293834937,2372089560705,

%U 4422146601609,90579297748689,510533809732953,938645847533601,19416287947991337,108935739610788465,585556544970294777

%N a(n) = 9^n mod 6^n.

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

%t Table[PowerMod[9,n,6^n],{n,0,30}] (* _Harvey P. Dale_, Jan 13 2024 *)

%o (Magma) [9^n mod 6^n: n in [0..35]]; // _Vincenzo Librandi_, Jun 03 2011

%K nonn

%O 0,2

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