login
A048845
Least positive integer k for which 23^n divides k!.
1
1, 23, 46, 69, 92, 115, 138, 161, 184, 207, 230, 253, 276, 299, 322, 345, 368, 391, 414, 437, 460, 483, 506, 529, 529, 552, 575, 598, 621, 644, 667, 690, 713, 736, 759, 782, 805, 828, 851, 874, 897, 920, 943, 966, 989, 1012, 1035, 1058
OFFSET
0,2
PROG
(Python)
from itertools import count
from sympy import multiplicity
def A048845(n):
if n == 0: return 1
c = 0
for k in count(23, 23):
c += multiplicity(23, k)
if c+k+23 > n:
return 23*(max(k, n-c) if n>=23 else n+1-c) # Chai Wah Wu, Feb 24 2026
CROSSREFS
See A007843 for more information.
Sequence in context: A094694 A164010 A132682 * A008605 A038152 A358684
KEYWORD
nonn
AUTHOR
Charles T. Le (charlestle(AT)yahoo.com)
STATUS
approved