OFFSET
1,3
COMMENTS
The function T(n,k) = T(k,n) is defined for k > n but only the values for 1 <= k <= n as a triangular array are listed here.
LINKS
Eric Weisstein's World of Mathematics, Greatest Common Divisor
FORMULA
T(n,k) = 2^gcd(n,k)-1.
EXAMPLE
Triangle begins
1;
1, 3;
1, 1, 7;
1, 3, 1, 15;
1, 1, 1, 1, 31;
1, 3, 7, 3, 1, 63;
MATHEMATICA
T[ n_, k_] := If[ n < 1 || k < 1, 0, 2^GCD[ n, k] - 1] (* Michael Somos, Jul 18 2011 *)
PROG
(PARI) {T(n, k) = if( n<1 || k<1, 0, 2^gcd(n, k) - 1)} /* Michael Somos, Jul 18 2011 */
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
EXTENSIONS
Name edited by Michel Marcus, Mar 05 2023
STATUS
approved