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.

A050508 Golden rectangle numbers: n * A007067(n).

This page as a plain text file.
%I A050508 #15 Aug 30 2022 02:08:04
%S A050508 0,2,6,15,24,40,60,77,104,135,160,198,228,273,322,360,416,476,522,589,
%T A050508 640,714,792,851,936,1000,1092,1188,1260,1363,1470,1550,1664,1749,
%U A050508 1870,1995,2088,2220,2318,2457,2600,2706,2856,3010,3124,3285,3404,3572,3744
%N A050508 Golden rectangle numbers: n * A007067(n).
%H A050508 Amiram Eldar, <a href="/A050508/b050508.txt">Table of n, a(n) for n = 0..10000</a>
%p A050508 A050508:=n->n*round(n*(1+sqrt(5))/2); seq(A050508(n), n=0..100); # _Wesley Ivan Hurt_, Nov 27 2013
%t A050508 a[n_] := n*Round[n*GoldenRatio]; Table[a[n], {n, 0, 48}] (* _Jean-François Alcover_, Jun 27 2012 *)
%o A050508 (Python)
%o A050508 from math import isqrt
%o A050508 def A050508(n): return n*((isqrt(5*n**2<<2)>>1)+n+1>>1) # _Chai Wah Wu_, Aug 29 2022
%Y A050508 Cf. A007067.
%K A050508 easy,nice,nonn
%O A050508 0,2
%A A050508 Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Dec 28 1999