login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) = 10^n mod 6^n.
1

%I #14 Sep 08 2022 08:45:33

%S 0,4,28,136,928,6688,20224,202240,902656,2308096,23080960,230809600,

%T 856907776,8569077760,7326613504,386722791424,1986487975936,

%U 14222659944448,40666642776064,406666427760640,410505837543424,4105058375434240,41050583754342400,410505837543424000

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

%H Vincenzo Librandi, <a href="/A139736/b139736.txt">Table of n, a(n) for n = 0..300</a>

%t Table[PowerMod[10,n,6^n],{n,0,30}] (* _Harvey P. Dale_, Oct 30 2013 *)

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

%o (PARI) a(n)=10^n%6^n \\ _Charles R Greathouse IV_, Jun 04 2011

%o (PARI) a(n)=lift(chinese(Mod(0,2^n),Mod(10,3^n)^n)) \\ _Charles R Greathouse IV_, Jun 04 2011

%K nonn

%O 0,2

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