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

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

%S 1,8,65,520,4161,33288,266305,2130440,17043521,136348168,1090785345,

%T 8726282760,69810262081,558482096648,4467856773185,35742854185480,

%U 285942833483841,2287542667870728,18300341342965825,146402730743726600

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

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

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

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

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

%F a(n) = 2^(3*n+3)/63 - 1/14 - (-1)^n/18. - _R. J. Mathar_, Jan 08 2011

%F From _Paul Barry_, Apr 04 2008: (Start)

%F G.f. x/((1-x^2)*(1-8*x));

%F a(n) = (1/3)*Sum_{k=0..n} A001045(3k). (End)

%F a(n) = floor(8^(n+1)/9)/7 = floor((8*8^n-1)/63) = round((8*8^n-8)/63) = round((16*8^n-9)/63) = ceiling((8*8^n-8)/63). a(n) = a(n-2) + 8^(n-1), n > 2. - _Mircea Merca_, Dec 28 2010

%p seq(1/7*floor(8^(n+1)/9),n=1..22); # _Mircea Merca_, Dec 27 2010

%t Table[FromDigits[PadRight[{},n,{1,0}],8],{n,20}] (* or *) LinearRecurrence[ {8,1,-8},{1,8,65},20] (* _Harvey P. Dale_, Jan 20 2021 *)

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

%Y Pairwise sums are (8^n - 1)/7 (A023001).

%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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)