login

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

a(n) = 5^n mod 2^n.
2

%I #12 Sep 08 2022 08:44:50

%S 0,1,1,5,1,21,9,45,225,357,761,1757,2641,5013,489,18829,28609,11973,

%T 59865,37181,185905,929525,2550473,4363757,13430177,42021,33764537,

%U 34604957,38807057,194035285,433305513

%N a(n) = 5^n mod 2^n.

%H Vincenzo Librandi, <a href="/A029757/b029757.txt">Table of n, a(n) for n = 0..240</a>

%p a:=n->5^n mod(2^(n)): seq(a(n), n=0..33); # _Zerinvary Lajos_, Feb 15 2008

%o (PARI) A029757(n) = lift(Mod(5^n,2^n)) \\ _Michael B. Porter_, Feb 02 2010

%o (Magma) [5^n mod 2^n: n in [0..80]]; // _Vincenzo Librandi_, Apr 25 2011

%K nonn,easy

%O 0,4

%A _N. J. A. Sloane_