Vyxal s
, 23 bytes
31-16/W∆ehS\.€ḣh2wi\.$W
From this answer two stupid features of Vyxal:
- Why \$ln(x)^-1\$\$ln(x)^{-1}\$ needs to take a list instead of digit?
- Seriously it cannot round a digit to n decimal places, so that part is handrolled.