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!)
A163662 A020988 written in base 2. 5

%I #22 Mar 03 2022 13:16:50

%S 10,1010,101010,10101010,1010101010,101010101010,10101010101010,

%T 1010101010101010,101010101010101010,10101010101010101010,

%U 1010101010101010101010,101010101010101010101010,10101010101010101010101010,1010101010101010101010101010

%N A020988 written in base 2.

%C The digits are n concatenated blocks of (10).

%C Smallest number having alternating bit sum -n. Cf. A065359. - _Washington Bomfim_, Jan 22 2011

%H G. C. Greubel, <a href="/A163662/b163662.txt">Table of n, a(n) for n = 1..495</a>

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

%F a(n) = Sum_{k=1..n} 10^(2k-1).

%F From _R. J. Mathar_, Jul 08 2009: (Start)

%F a(n) = 100*a(n-1) + 10.

%F a(n) = 101*a(n-1) - 100*a(n-2).

%F G.f.: 10*x/((100*x-1)*(x-1)). (End)

%F From _G. C. Greubel_, Aug 01 2017: (Start)

%F a(n) = (10/99)*(10^(2*n) - 1).

%F E.g.f.: (10/99)*(exp(100*x) - exp(x)). (End)

%p A163662 := proc(n) add(10^(2*k-1),k=1..n) ; end: seq(A163662(n),n=1..30) ; # _R. J. Mathar_, Jul 08 2009

%t Table[(10/99)*(10^(2*n) - 1), {n,1,50}] (* _G. C. Greubel_, Aug 01 2017 *)

%t Table[FromDigits[PadRight[{},2n,{1,0}]],{n,20}] (* or *) LinearRecurrence[ {101,-100},{10,1010},20] (* _Harvey P. Dale_, Jan 08 2020 *)

%o (PARI) x='x+O('x^50); Vec(10*x/((100*x-1)*(x-1))) \\ _G. C. Greubel_, Aug 01 2017

%K nonn,base,easy

%O 1,1

%A _Jaroslav Krizek_, Aug 02 2009

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 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)