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.

A187765 The (n-1)th decimal place of the fractional part of the square root of n.

This page as a plain text file.
%I A187765 #15 May 21 2021 02:19:33
%S A187765 0,4,3,0,0,8,1,1,0,0,3,3,3,9,1,0,5,4,2,8,8,5,4,6,0,1,2,7,5,0,8,7,2,3,
%T A187765 0,0,2,2,7,9,4,0,6,0,7,3,0,4,0,7,3,2,4,8,8,6,9,0,7,4,3,5,7,0,2,3,3,9,
%U A187765 8,7,5,7,9,6,4,6,3,4,9,5,0,3,5,0,7,0,2
%N A187765 The (n-1)th decimal place of the fractional part of the square root of n.
%C A187765 If n=1 then the term is the first digit before the decimal point. If the square root of n is a whole number then the term is 0.
%e A187765 If n=2, sqrt(2)=1.41421356 approx., the 1st(2-1) decimal place of which is 4 so the 2nd term is 4. If n=3, sqrt(3)=1.73205081 approx., the 2nd(3-1) decimal place of which is 3 so the 3rd term is 3.
%t A187765 Join[{0}, Table[RealDigits[Sqrt[n] - Floor[Sqrt[n]], 10, n, -1][[1, -2]], {n, 2, 87}]]
%o A187765 (Python)
%o A187765 for n in range(1,16):
%o A187765     x=str(n**0.5)
%o A187765     for i in range(n):
%o A187765         x=x+"0"
%o A187765     if n==1:
%o A187765         r=str(x[-1])
%o A187765     else:
%o A187765         r=r+","+str(x[n])
%o A187765     if n==15:
%o A187765         print(r)
%Y A187765 Cf. A003076 (n-th digit after decimal point of square root of n).
%K A187765 nonn,base
%O A187765 1,2
%A A187765 _Ruskin Harding_, Jan 04 2013