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.

A127465 Triangle read by rows: T(n,k) = k*phi(n/k) if k|n, T(n,k)=0 otherwise.

Original entry on oeis.org

1, 1, 2, 2, 0, 3, 2, 2, 0, 4, 4, 0, 0, 0, 5, 2, 4, 3, 0, 0, 6, 6, 0, 0, 0, 0, 0, 7, 4, 4, 0, 4, 0, 0, 0, 8, 6, 0, 6, 0, 0, 0, 0, 0, 9, 4, 8, 0, 0, 5, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 4, 4, 6, 8, 0, 6, 0, 0, 0, 0, 0, 12
Offset: 1

Views

Author

Gary W. Adamson, Jan 15 2007

Keywords

Examples

			First few rows of the triangle are:
1;
1, 2;
2, 0, 3;
2, 2, 0, 4;
4, 0, 0, 0, 5;
2, 4, 3, 0, 0, 6;
6, 0, 0, 0, 0, 0, 7;
4, 4, 0, 4, 0, 0, 0, 8;
...
		

Crossrefs

Cf. A054523, A000010 (column k=1), A018804 (row sums).

Programs

  • Maple
    A127465 := proc(n,k)
            if n mod k = 0 then
                    k*numtheory[phi](n/k) ;
            else
                    0;
            end if;
    end proc:
    seq(seq(A127465(n,m),m=1..n),n=1..12) ; # R. J. Mathar, Nov 08 2011

Formula

T(n,k) = k*A054523(n,k).