login
A048843
Least positive integer k for which 17^n divides k!.
1
1, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255, 272, 289, 289, 306, 323, 340, 357, 374, 391, 408, 425, 442, 459, 476, 493, 510, 527, 544, 561, 578, 578, 595, 612, 629, 646, 663, 680, 697, 714, 731, 748, 765, 782, 799
OFFSET
0,2
PROG
(Python)
from itertool import count
from sympy import multiplicity
def A048843(n):
if n == 0: return 1
c = 0
for k in count(17, 17):
c += multiplicity(17, k)
if c+k+17 > n:
return 17*(max(k, n-c) if n>=17 else n+1-c) # Chai Wah Wu, Feb 24 2026
CROSSREFS
See A007843 for more information.
Sequence in context: A044857 A161440 A044902 * A008599 A033029 A044842
KEYWORD
nonn
AUTHOR
Charles T. Le (charlestle(AT)yahoo.com)
STATUS
approved