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!)
A178827 Partial sums of floor(8^n/9)/7. 2
0, 1, 9, 74, 594, 4755, 38043, 304348, 2434788, 19478309, 155826477, 1246611822, 9972894582, 79783156663, 638265253311, 5106122026496, 40848976211976, 326791809695817, 2614334477566545, 20914675820532370, 167317406564258970, 1338539252514071771, 10708314020112574179, 85666512160900593444, 685332097287204747564 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Mircea Merca, Inequalities and Identities Involving Sums of Integer Functions J. Integer Sequences, Vol. 14 (2011), Article 11.9.1.
FORMULA
7*a(n) = round((32*8^n - 126*n - 81)/252).
7*a(n) = floor((16*8^n - 63*n - 16)/126).
7*a(n) = ceiling((16*8^n - 63*n - 65)/126).
7*a(n) = round((16*8^n - 63*n - 16)/126).
a(n) = a(n-2) + (8^(n-1) - 1)/7, n > 2.
a(n) = 9*a(n-1) - 7*a(n-2) - 9*a(n-3) + 8*a(n-4), n > 4.
G.f.: x^2/((1+x)*(1-8*x)*(1-x)^2).
7*a(n) = (32*8^n - 126*n - 81 + 49*(-1)^n)/252. - Bruno Berselli, Jan 19 2011
a(n) = (floor(8^(n+1)/63) - floor((n+1)/2))/7. - Seiichi Manyama, Dec 22 2023
EXAMPLE
a(3) = (1/7)*(floor(8/9) + floor(64/9) + floor(512/9)) = (1/7)*(0 + 7 + 56) = (1/7)*63 = 9.
MAPLE
A178827 := proc(n) add( floor(8^i/9)/7, i=0..n) ; end proc:
MATHEMATICA
Rest[CoefficientList[Series[x^2/((1+x)*(1-8*x)*(1-x)^2), {x, 0, 30}], x]] (* G. C. Greubel, Jan 22 2019 *)
PROG
(Magma) [ &+[Floor(8^k/9)/7: k in [1..n]]: n in [1..25] ]; // Bruno Berselli, Apr 28 2011
(Decimal BASIC)
FOR n=1 TO 1000
PRINT n; (32*8^n-126*n-81+49*(-1)^n)/1764
NEXT n
END ! Bruno Berselli, Apr 28 2011
(PARI) my(x='x+O('x^30)); concat([0], Vec(x^2/((1+x)*(1-8*x)*(1-x)^2))) \\ G. C. Greubel, Jan 22 2019
(Sage) a=(x^2/((1+x)*(1-8*x)*(1-x)^2)).series(x, 30).coefficients(x, sparse=False); a[1:] # G. C. Greubel, Jan 22 2019
(GAP) a:=[0, 1, 9, 74];; for n in [5..30] do a[n]:=9*a[n-1]-7*a[n-2]-9*a[n-3] +8*a[n-4]; od; a; # G. C. Greubel, Jan 22 2019
CROSSREFS
Column k=8 of A368296.
Cf. A033118.
Sequence in context: A145524 A319961 A037533 * A190984 A001716 A372843
KEYWORD
nonn,less
AUTHOR
Mircea Merca, Dec 27 2010
STATUS
approved

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 July 11 20:49 EDT 2024. Contains 374234 sequences. (Running on oeis4.)