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.

A328334 Forward difference of difference between 2^n and the next smaller power of 3.

Original entry on oeis.org

1, 0, 4, 2, -2, 32, 10, -34, 256, 26, 1024, 590, -278, 8192, 3262, -6598, 65536, 12974, 262144, 169994, -14306, 2097152, 1005658, -1177330, 16777216, 4856618, -18984578, 134217728, 10155130, 536870912, 298900846, -177039286, 4294967296, 1616365790, -3740837222
Offset: 0

Views

Author

Alois P. Heinz, Oct 12 2019

Keywords

Comments

a(n) is even for n >= 1.

Crossrefs

Cf. A063005.

Programs

  • Maple
    b:= proc(n) option remember; (t-> t-3^ilog[3](t))(2^n) end:
    a:= n-> b(n+1)-b(n):
    seq(a(n), n=0..40);

Formula

a(n) = A063005(n+1) - A063005(n).