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.

A246168 a(n) = 2^n - 10.

Original entry on oeis.org

-9, -8, -6, -2, 6, 22, 54, 118, 246, 502, 1014, 2038, 4086, 8182, 16374, 32758, 65526, 131062, 262134, 524278, 1048566, 2097142, 4194294, 8388598, 16777206, 33554422, 67108854, 134217718, 268435446, 536870902, 1073741814, 2147483638
Offset: 0

Views

Author

Vincenzo Librandi, Aug 18 2014

Keywords

Crossrefs

Sequences of the form 2^n-k: A000079 (k=0), A000225 (k=1), A000918 (k=2), A036563 (k=3), A028399 (k=4), A168616 (k=5), A131130 (k=6), A048490 (k=7), A159741 (k=8), A185346 (k=9), this sequence (k=10).

Programs

  • Magma
    [2^n-10: n in [0..40]];
    
  • Mathematica
    Table[2^n - 10, {n, 0, 35}] (* or *) CoefficientList[Series[(-9 + 19 x)/(1 - 3 x + 2 x^2), {x, 0, 35}], x]
    LinearRecurrence[{3,-2},{-9,-8},50] (* Harvey P. Dale, Jan 11 2024 *)
  • PARI
    vector(50, n, 2^(n-1)-10) \\ Derek Orr, Aug 18 2014

Formula

G.f.: (-9+19*x)/(1-3*x+2*x^2).
a(n) = 3*a(n-1) - 2*a(n-2).
a(n) = A000079(n) - 10.
From Elmo R. Oliveira, Dec 21 2023: (Start)
a(n) = 2*a(n-1) + 10 for n>0.
E.g.f.: exp(x)*(exp(x) - 10). (End)