OFFSET
2,4
COMMENTS
See A374451 for the corresponding prime numbers.
LINKS
EXAMPLE
Triangle T(n, k) begins:
n n-th row
-- -------------------------------------
2 1
3 1, -1
4 2, 1, 2
5 1, -1, -1, -2
6 1, 1, 1, -1, 1
7 1, -1, -1, -2, -1, -1
8 3, 2, 3, 1, 3, 2, 3
9 2, -1, 1, -2, 2, -1, 2, -3
10 1, 1, 1, -1, 1, -1, 1, -2, 1
11 1, -1, -1, -2, -1, -1, -1, -3, -2, -1
12 2, 1, 2, 1, 2, 1, 2, -1, 2, 1, 2
PROG
(PARI) T(n, k) = { forprime (p = 2, oo, my (d = valuation(n, p) - valuation(k, p)); if (d, return (d); ); ); }
CROSSREFS
KEYWORD
sign,tabl
AUTHOR
Rémy Sigrist, Jul 09 2024
STATUS
approved