cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A034057 Decimal part of a(n)^(1/2) starts with n (squares excluded).

This page as a plain text file.
%I A034057 #25 Mar 15 2021 05:45:36
%S A034057 26,10,5,11,2,21,7,3,8,35,199,83,17,124,51,173,10,201,67,27,149,52,
%T A034057 126,5,18,541,127,86,53,28,69,11,40,336,54,19,70,179,29,108,41,2,71,
%U A034057 89,6,181,12,20,42,182,1407,381,157,91,57,43,31,134,21,92,13,58
%N A034057 Decimal part of a(n)^(1/2) starts with n (squares excluded).
%H A034057 Paul Tek, <a href="/A034057/b034057.txt">Table of n, a(n) for n = 0..10000</a>
%H A034057 Paul Tek, <a href="/A034057/a034057.txt">PARI program for this sequence</a>
%e A034057 a(0)=26 -> 26^(1/2)=5.{0}990195...
%e A034057 a(1)=10 -> 10^(1/2)=3.{1}622776...
%o A034057 (Python)
%o A034057 from math import sqrt
%o A034057 def a(n):
%o A034057   k, s, pow10 = 3, sqrt(2), 10**len(str(n))
%o A034057   while int(pow10*(s-int(s))) != n: k, s = k+1, sqrt(k)
%o A034057   return k-1
%o A034057 print([a(n) for n in range(1, 67)]) # _Michael S. Branicky_, Mar 15 2021
%Y A034057 Cf. A034067, A034077.
%K A034057 nonn,base,look
%O A034057 0,1
%A A034057 _Patrick De Geest_, Sep 15 1998
%E A034057 Title corrected by _Sean A. Irvine_, Aug 02 2020