login
A034057
Decimal part of a(n)^(1/2) starts with n (squares excluded).
7
26, 10, 5, 11, 2, 21, 7, 3, 8, 35, 199, 83, 17, 124, 51, 173, 10, 201, 67, 27, 149, 52, 126, 5, 18, 541, 127, 86, 53, 28, 69, 11, 40, 336, 54, 19, 70, 179, 29, 108, 41, 2, 71, 89, 6, 181, 12, 20, 42, 182, 1407, 381, 157, 91, 57, 43, 31, 134, 21, 92, 13, 58
OFFSET
0,1
EXAMPLE
a(0)=26 -> 26^(1/2)=5.{0}990195...
a(1)=10 -> 10^(1/2)=3.{1}622776...
PROG
(Python)
from math import sqrt
def a(n):
k, s, pow10 = 3, sqrt(2), 10**len(str(n))
while int(pow10*(s-int(s))) != n: k, s = k+1, sqrt(k)
return k-1
print([a(n) for n in range(1, 67)]) # Michael S. Branicky, Mar 15 2021
CROSSREFS
Sequence in context: A163989 A034077 A040654 * A070715 A317105 A033346
KEYWORD
nonn,base,look
AUTHOR
Patrick De Geest, Sep 15 1998
EXTENSIONS
Title corrected by Sean A. Irvine, Aug 02 2020
STATUS
approved