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!)
A014921 a(1)=1, a(n) = n*8^(n-1) + a(n-1). 2
1, 17, 209, 2257, 22737, 219345, 2054353, 18831569, 169826513, 1512003793, 13323163857, 116402378961, 1009755576529, 8706336970961, 74677034637521, 637626988058833, 5422701592139985, 45955098238474449 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Iain Fox, Table of n, a(n) for n = 1..1104 (first 1000 terms from Vincenzo Librandi)
FORMULA
G.f.: -x/((x-1)*(8*x-1)^2). - Colin Barker, Oct 15 2012
a(1)=1, a(2)=17, a(n) = 16*a(n-1) - 64*a(n-2) + 1. - Vincenzo Librandi, Oct 23 2012
E.g.f.: (exp(x) + exp(8*x)*(56*x - 1))/49. - Iain Fox, Aug 10 2018
MAPLE
a:=n->sum (8^n-8^j, j=0..n): seq(a(n)/7, n=1..21); # Zerinvary Lajos, Dec 14 2008
MATHEMATICA
CoefficientList[Series[1/((1 - x)(1 - 8*x)^2), {x, 0, 40}], x] (* Vincenzo Librandi, Oct 23 2012 *)
a[n_] := (1 + (7 n - 1) 8^n)/49; Array[a, 19, 0] (* Robert G. Wilson v, Aug 10 2018 *)
PROG
(Magma) I:=[1, 17]; [n le 2 select I[n] else 16*Self(n-1)-64*Self(n-2)+1: n in [1..30]]; // Vincenzo Librandi, Oct 23 2012
(PARI) first(n) = my(res=vector(n)); res[1]=1; for(x=2, n, res[x]=x*8^(x-1)+res[x-1]); res \\ Iain Fox, Aug 10 2018
(PARI) a(n) = (1 + 8^n*(7*n-1))/49 \\ Iain Fox, Aug 10 2018
(PARI) first(n) = Vec(x/((1-x)*(1-8*x)^2) + O(x^(n+1))) \\ Iain Fox, Aug 10 2018
(GAP) a:=[1];; for n in [2..20] do a[n]:=n*8^(n-1)+a[n-1]; od; a; # Muniru A Asiru, Aug 12 2018
CROSSREFS
Sequence in context: A158005 A158006 A239157 * A081035 A016299 A016250
KEYWORD
nonn,easy
AUTHOR
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 April 23 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)