OFFSET
1,1
COMMENTS
Squares are excluded by definition because a(n) would only exist for positive integers s that include all decimal digits. The smallest square s^2 for which a(n) would exist is 1023456789^2 = 1047463798950190521.
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
Wikipedia, Significant Figures
FORMULA
EXAMPLE
The leading 19 significant digits of sqrt(2) are [1, 4, 1, 4, 2, 1, 3, 5, 6, 2, 3, 7, 3, 0, 9, 5, 0, 4, 8]. These digits include all decimal digits, with the digit '8' appearing for the first time at position 19. Since 2 is the first nonsquare, it follows that a(1) = 19.
MAPLE
PROG
(Python)
from itertools import count
from math import isqrt
def A384923(n):
m = n+(k:=isqrt(n))+(n>k*(k+1))
return 1+next(n for n in count(9) if len(set(str(isqrt(10**(n<<1)*m))))==10) # Chai Wah Wu, Jul 01 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Felix Huber, Jun 26 2025
STATUS
approved
