OFFSET
2,2
COMMENTS
This is the "s" in the American Mathematical Monthly problem.
LINKS
Michel Marcus, Table of n, a(n) for n = 2..10388 (Rows n=2..300).
R. D. Carmichael, Diophantine Analysis: 141, The American Mathematical Monthly, Vol. 14, No. 5 (May, 1907), p. 107.
FORMULA
T(n,k) = n - A115627(n, k).
EXAMPLE
First few rows are:
1;
2, 2;
1, 3;
2, 4, 4;
2, 4, 5;
3, 5, 6, 6;
1, 6, 7, 7;
2, 5, 8, 8;
2, 6, 8, 9;
3, 7, 9, 10, 10;
2, 7, 10, 11, 11;
...
MATHEMATICA
T[n_, k_] := n - IntegerExponent[n!, Prime[k]]; Table[T[n, k], {n, 2, 19}, {k, 1, PrimePi[n]}] // Flatten (* Amiram Eldar, Apr 21 2022 *)
PROG
(PARI) row(n) = vector(primepi(n), k, n-valuation(n!, prime(k)));
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Michel Marcus, Apr 21 2022
STATUS
approved