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!)
A033119 Base-9 digits are, in order, the first n terms of the periodic sequence with initial period 1,0. 7

%I #32 Sep 08 2022 08:44:51

%S 1,9,82,738,6643,59787,538084,4842756,43584805,392263245,3530369206,

%T 31773322854,285959905687,2573639151183,23162752360648,

%U 208464771245832,1876182941212489,16885646470912401,151970818238211610

%N Base-9 digits are, in order, the first n terms of the periodic sequence with initial period 1,0.

%C Partial sums of A015577. - _Mircea Merca_, Dec 28 2010

%H Vincenzo Librandi, <a href="/A033119/b033119.txt">Table of n, a(n) for n = 1..1000</a>

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

%F a(n) = round((9*9^n-9)/80) = round((9*9^n-5)/80) = floor((9*9^n-1)/80) = ceiling((9*9-9)/80); a(n) = a(n-2) + 9^(n-1), n > 1. - _Mircea Merca_, Dec 28 2010

%F From _Joerg Arndt_, Jan 08 2011: (Start)

%F G.f.: x / ( (x-1)*(9*x-1)*(1+x) ).

%F a(n) = 9*a(n-1) + a(n-2) - 9*a(n-3). (End)

%e Base 9...........Decimal

%e 1......................1

%e 10.....................9

%e 101...................82

%e 1010.................738

%e 10101...............6643

%e 101010.............59787

%e 1010101...........538084

%e 10101010.........4842756

%e 101010101.......43584805, etc. - _Philippe Deléham_, Mar 23 2014

%p seq(floor((9*9^n-1)/80),n=1..25); # _Mircea Merca_, Dec 28 2010

%t Join[{a=1,b=9},Table[c=8*b+9*a+1;a=b;b=c,{n,60}]] (* _Vladimir Joseph Stephan Orlovsky_, Feb 06 2011 *)

%t Table[FromDigits[PadRight[{},n,{1,0}],9],{n,20}] (* _Harvey P. Dale_, May 26 2020 *)

%o (Magma) [Round((9*9^n-9)/80): n in [1..30]]; // _Vincenzo Librandi_, Jun 25 2011

%Y Cf. A015577.

%K nonn,base,easy

%O 1,2

%A _Clark Kimberling_

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