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!)
A147538 Numbers whose binary representation is the concatenation of n 1's and 2n-1 digits 0. 7

%I #22 Apr 19 2023 02:26:00

%S 2,24,224,1920,15872,129024,1040384,8355840,66977792,536346624,

%T 4292870144,34351349760,274844352512,2198889037824,17591649173504,

%U 140735340871680,1125891316908032,9007164895002624,72057456598974464,576460202547609600

%N Numbers whose binary representation is the concatenation of n 1's and 2n-1 digits 0.

%C a(n) is the number whose binary representation is A138119(n).

%H G. C. Greubel, <a href="/A147538/b147538.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (12,-32).

%F a(n) = 2^(2*n-1)*(2^n -1) = A081294(n)*A000225(n). - _R. J. Mathar_, Nov 09 2008

%F a(n) = 2*A016152(n). - _Omar E. Pol_, Nov 13 2008

%F From _Colin Barker_, Nov 04 2012: (Start)

%F a(n) = 12*a(n-1) - 32*a(n-2).

%F G.f.: 2*x/((1-4*x)*(1-8*x)). (End)

%p seq(2^(2*n-1)*(2^n -1), n=1..20); # _G. C. Greubel_, Jan 12 2020

%t Table[FromDigits[Join[Table[1, {n}], Table[0, {2n - 1}]], 2], {n, 1, 20}] (* _Stefan Steinerberger_, Nov 11 2008 *)

%o (PARI) vector(20, n, 2^(2*n-1)*(2^n -1)) \\ _G. C. Greubel_, Jan 12 2020

%o (Magma) [2^(2*n-1)*(2^n -1): n in [1..20]]; // _G. C. Greubel_, Jan 12 2020

%o (Sage) [2^(2*n-1)*(2^n -1) for n in (1..20)] # _G. C. Greubel_, Jan 12 2020

%o (GAP) List([1..20], n-> 2^(2*n-1)*(2^n -1)); # _G. C. Greubel_, Jan 12 2020

%o (Python)

%o def a(n): return ((1 << n) - 1) << (2*n-1)

%o print([a(n) for n in range(1, 22)]) # _Michael S. Branicky_, Feb 24 2021

%Y Cf. A138119.

%Y Cf. A016152. - _Omar E. Pol_, Nov 13 2008

%K base,easy,nonn

%O 1,1

%A _Omar E. Pol_, Nov 06 2008

%E Extended by _R. J. Mathar_ and _Stefan Steinerberger_, Nov 09 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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)