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.

A151779 a(1)=1; for n > 1, a(n)=6*5^{wt(n-1)-1}.

Original entry on oeis.org

1, 6, 6, 30, 6, 30, 30, 150, 6, 30, 30, 150, 30, 150, 150, 750, 6, 30, 30, 150, 30, 150, 150, 750, 30, 150, 150, 750, 150, 750, 750, 3750, 6, 30, 30, 150, 30, 150, 150, 750, 30, 150, 150, 750, 150, 750, 750, 3750, 30, 150, 150, 750, 150, 750, 750, 3750, 150, 750, 750, 3750
Offset: 1

Views

Author

N. J. A. Sloane, Jun 25 2009

Keywords

Comments

Number of cells turned ON in n-th generation of cellular automaton based on Z^3 lattice in the same way that A147562 is based on the Z^2 lattice. Here each cell has six neighbors.

Crossrefs

Programs

  • Maple
    wt := proc(n) local w,m,i; w := 0; m := n; while m > 0 do i := m mod 2; w := w+i; m := (m-i)/2; od; w; end:
    f:=d->[seq((2*d)*(2*d-1)^(wt(n-1)-1),n=2..120)];
    f2:=d->[1,op(f(d))];
    f2(3);
  • PARI
    a(n)=6*5^(hammingweight(n-1)-1)\1 \\ Charles R Greathouse IV, Mar 07 2015