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!)
A139735 a(n) = 10^n mod 4^n. 1

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

%S 0,2,4,40,16,672,576,5760,57600,182784,779264,3598336,10817536,

%T 41066496,8011776,616988672,1874919424,1569325056,15693250560,

%U 19493552128,194935521280,1949355212800,10697459105792,36605846880256,225320980447232,1409990787072

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

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

%t Table[PowerMod[10, n, 4^n], {n, 0, 30}] (* _Vincenzo Librandi_, Jun 12 2016 *)

%o (Magma) [Modexp(10, n, 4^n): n in [0..30]]; // _Vincenzo Librandi_, Jun 11 2016

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

%o (PARI) a(n)=if(n,lift(Mod(5,2^n)^n)<<n,0) \\ _Charles R Greathouse IV_, Jun 04 2011

%K nonn

%O 0,2

%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 August 8 08:46 EDT 2024. Contains 375018 sequences. (Running on oeis4.)