The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A053318 a(n) contains n digits (either '2' or '7') and is divisible by 2^n. 3

%I #8 Oct 27 2019 17:30:28

%S 2,72,272,2272,22272,222272,7222272,27222272,727222272,2727222272,

%T 72727222272,772727222272,7772727222272,77772727222272,

%U 277772727222272,2277772727222272,72277772727222272,272277772727222272

%N a(n) contains n digits (either '2' or '7') and is divisible by 2^n.

%H Robert Israel, <a href="/A053318/b053318.txt">Table of n, a(n) for n = 1..999</a>

%F a(n) = a(n-1) + 10^(n-1)*(2 + 5*(a(n-1)/2^(n-1) mod 2)), i.e., a(n) ends with a(n-1); if a(n-1) is divisible by 2^n then a(n) begins with a 2, if not then a(n) begins with a 7.

%p A[1]:= 2:

%p for n from 2 to 100 do

%p if A[n-1] mod 2^n = 0 then A[n]:= A[n-1]+2*10^(n-1)

%p else A[n]:= A[n-1]+7*10^(n-1)

%p fi

%p od:

%p seq(A[i],i=1..100); # _Robert Israel_, Oct 27 2019

%Y Cf. A023399, A050621, A050622, A035014.

%K base,nonn

%O 1,1

%A _Henry Bottomley_, Mar 06 2000

%E Formula corrected by _Robert Israel_, Oct 27 2019

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 May 14 12:38 EDT 2024. Contains 372533 sequences. (Running on oeis4.)