%I #15 Sep 08 2022 08:45:33
%S 0,1,1,1,37,127,541,1036,3799,5185,51850,164206,224884,1185958,
%T 3887965,5398867,10941949,66372769,276307201,438549076,3223229293,
%U 7824802123,15485902012,60715841293,42299339968,705422936161,1970497704952,1911916251217,11493565027183
%N a(n) = 10^n mod 3^n.
%H Vincenzo Librandi, <a href="/A139734/b139734.txt">Table of n, a(n) for n = 0..300</a>
%t Table[PowerMod[10,n,3^n],{n,0,30}] (* _Harvey P. Dale_, Aug 04 2012 *)
%o (Sage) [power_mod(10,n,3^n) for n in range(0,29)] # _Zerinvary Lajos_, Nov 28 2009
%o (Magma) [10^n mod 3^n: n in [0..35]]; // _Vincenzo Librandi_, Jun 04 2011
%K nonn
%O 0,5
%A _N. J. A. Sloane_, May 20 2008