OFFSET
0,4
COMMENTS
Number of integers k such that n! < k^2 < (n + 1)!.
FORMULA
EXAMPLE
For n = 3, between 3! and 4! there are only two squares: 9 and 16, so a(3) = 2.
PROG
(Python)
from math import isqrt, factorial
def A373048(n): return isqrt((m:=factorial(n))*(n+1))-isqrt(m) # Chai Wah Wu, Aug 03 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gonzalo MartÃnez, Aug 02 2024
STATUS
approved