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.

A187395 a(n) = floor(r*n), where r = 4 + sqrt(10); complement of A187396.

This page as a plain text file.
%I A187395 #14 Mar 29 2021 14:48:15
%S A187395 7,14,21,28,35,42,50,57,64,71,78,85,93,100,107,114,121,128,136,143,
%T A187395 150,157,164,171,179,186,193,200,207,214,222,229,236,243,250,257,265,
%U A187395 272,279,286,293,300,307,315,322,329,336,343,350,358,365,372,379,386,393,401,408,415,422,429,436,444,451,458,465,472,479,487,494,501
%N A187395 a(n) = floor(r*n), where r = 4 + sqrt(10); complement of A187396.
%C A187395 A187395 and A187396 are the Beatty sequences based on r = 4 + sqrt(10) and s = -2 + sqrt(10); 1/r + 1/s = 1.
%F A187395 a(n) = floor(r*n), where r = 4 + sqrt(10).
%t A187395 r=4+10^(1/2); s=-2+10^(1/2);
%t A187395 Table[Floor[r*n],{n,1,80}]  (* A187395 *)
%t A187395 Table[Floor[s*n],{n,1,80}]  (* A187396 *)
%o A187395 (Python)
%o A187395 from sympy import integer_nthroot
%o A187395 def A187395(n): return 4*n+integer_nthroot(10*n**2,2)[0] # _Chai Wah Wu_, Mar 16 2021
%Y A187395 Cf. A187396.
%K A187395 nonn
%O A187395 1,1
%A A187395 _Clark Kimberling_, Mar 09 2011
%E A187395 Edited by _Clark Kimberling_, Mar 17 2021