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.

A253068 The subsequence A253066(2^n-1).

Original entry on oeis.org

1, 6, 28, 112, 456, 1816, 7288, 29112, 116536, 465976, 1864248, 7456312, 29826616, 119303736, 477220408, 1908870712, 7635504696, 30541975096, 122167987768, 488671776312, 1954687454776, 7818749120056, 31274997878328, 125099988717112, 500399960460856, 2001599830658616, 8006399345004088, 32025597335277112, 128102389430586936
Offset: 0

Views

Author

Keywords

Comments

A253066 is the Run Length Transform of this sequence.

Crossrefs

Cf. A253066.

Programs

  • Maple
    OddCA2:=proc(f,M) local n,a,i,f2,g,p;
    f2:=simplify(expand(f)) mod 2;
    p:=1; g:=f2;
    for n from 1 to M do p:=expand(p*g) mod 2; print(n,nops(p)); g:=expand(g^2) mod 2; od:
    return;
    end;
    f25:=1/x+1+x+1/y+y/x+x*y;
    OddCA2(f25,8);
  • Mathematica
    LinearRecurrence[{3, 6, -8}, {1, 6, 28}, 29] (* Jean-François Alcover, Nov 23 2017 *)
  • PARI
    a(n) = ((-2)^n+4^(2+n)-8)/9 \\ Colin Barker, Jul 16 2015
    
  • PARI
    Vec((4*x^2+3*x+1)/((x-1)*(2*x+1)*(4*x-1)) + O(x^30)) \\ Colin Barker, Jul 16 2015

Formula

G.f.: (1+3x+4x^2)/((1-x)(1+2x)(1-4x)).
a(n) = ((-2)^n+4^(2+n)-8)/9. - Colin Barker, Jul 16 2015