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.

A335137 a(n) = floor(n*Im(2*e^(i*Pi/5))).

This page as a plain text file.
%I A335137 #32 Mar 04 2023 11:32:17
%S A335137 1,2,3,4,5,7,8,9,10,11,12,14,15,16,17,18,19,21,22,23,24,25,27,28,29,
%T A335137 30,31,32,34,35,36,37,38,39,41,42,43,44,45,47,48,49,50,51,52,54,55,56,
%U A335137 57,58,59,61,62,63,64,65,67,68,69,70,71,72
%N A335137 a(n) = floor(n*Im(2*e^(i*Pi/5))).
%C A335137 This is the Beatty sequence for imaginary part of 2*e^(i*Pi/5).
%C A335137 Im(2*e^(i*Pi/5)) = A182007 = 1.1755705045849462583374119... = 2*sin(Pi/5).
%C A335137 The real part of floor(n*2*e^(i*Pi/5)) is A000201 (floor(n*phi)).
%C A335137 Re(2*e^(i*Pi/5)) = A001622 = phi = (1 + sqrt(5))/2.
%C A335137 For n < 57, a(n) = A109234(n).
%H A335137 Karl V. Keller, Jr., <a href="/A335137/b335137.txt">Table of n, a(n) for n = 1..10000</a>
%H A335137 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/BeattySequence.html">Beatty Sequence</a>.
%H A335137 <a href="/index/Be#Beatty">Index entries for sequences related to Beatty sequences</a>.
%e A335137 For n = 3, floor(3*1.17557) = 3.
%t A335137 Array[Floor[# Im[2 E^(I*Pi/5)]] &, 62] (* _Michael De Vlieger_, May 24 2020 *)
%o A335137 (Python)
%o A335137 from sympy import floor, im, exp, I, pi
%o A335137 for n in range(1, 101): print(floor(n*im(2*exp(I*pi/5))), end=', ')
%Y A335137 Cf. A000201, A001622, A109234, A182007.
%K A335137 nonn
%O A335137 1,2
%A A335137 _Karl V. Keller, Jr._, May 24 2020