OFFSET
0,4
COMMENTS
Digits 2..(n-1) in strict descending order (n-1)..2 interpreted in base n.
Upper bound of A370371(n) when n is odd and n-1 has an even 2-adic valuation.
FORMULA
a(n) = (n - 2)*(n^(n - 1) - 1)/(n - 1)^2 for n > 1.
PROG
(Python)
def A370671(n): return (n-2)*(n**(n-1)-1)//(n-1)**2 if n > 1 else 0
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Feb 25 2024
STATUS
approved