cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A014921 a(1)=1, a(n) = n*8^(n-1) + a(n-1).

Original entry on oeis.org

1, 17, 209, 2257, 22737, 219345, 2054353, 18831569, 169826513, 1512003793, 13323163857, 116402378961, 1009755576529, 8706336970961, 74677034637521, 637626988058833, 5422701592139985, 45955098238474449
Offset: 1

Views

Author

Keywords

Programs

  • 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
  • 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
    
  • 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 *)
  • 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
    

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