OFFSET
1,2
COMMENTS
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1275
FORMULA
T(n,k) = A001511(n/k) for k | n, T(n,k) = 0 otherwise. - Andrew Howroyd, Aug 04 2018
EXAMPLE
First few rows of the triangle are:
1;
2, 1;
1, 0, 1;
3, 2, 0, 1;
1, 0, 0, 0, 1;
2, 1, 2, 0, 0, 1;
1, 0, 0, 0, 0, 0, 1;
4, 3, 0, 2, 0, 0, 0, 1;
...
MAPLE
A129353 := proc(n, k)
end proc: # R. J. Mathar, Jul 14 2012
MATHEMATICA
T[n_, k_] := If[Mod[n, k] != 0, 0, 1 + IntegerExponent[n/k, 2]];
Table[T[n, k], {n, 1, 15}, {k, 1, n}] // Flatten (* Jean-François Alcover, Apr 08 2020, from PARI *)
PROG
(PARI) T(n, k)={if(n%k, 0, 1 + valuation(n/k, 2))} \\ Andrew Howroyd, Aug 04 2018
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson, Apr 10 2007
STATUS
approved