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.
%I A185950 #35 Sep 08 2022 08:45:55 %S A185950 -1,2,13,32,59,94,137,188,247,314,389,472,563,662,769,884,1007,1138, %T A185950 1277,1424,1579,1742,1913,2092,2279,2474,2677,2888,3107,3334,3569, %U A185950 3812,4063,4322,4589,4864,5147,5438,5737,6044,6359,6682,7013,7352,7699,8054,8417,8788,9167,9554,9949,10352,10763,11182,11609 %N A185950 a(n) = 4*n^2 - n - 1. %C A185950 Write the sequence A023443 in a clockwise spiral. a(n) is on the y-axis. %C A185950 a(n) mod 9 = period 9: repeat [8,2,4,5,5,4,2,8,4] = A182868(n+2) mod 9. %H A185950 G. C. Greubel, <a href="/A185950/b185950.txt">Table of n, a(n) for n = 0..5000</a> %H A185950 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1). %F A185950 a(n) = A176126(4*n-1) = A054556(n+1) - 2 = A033991(n) - 1. %F A185950 a(n) = a(n-1) + 8*n - 5. %F A185950 a(n) = 2*a(n-1) - a(n-2) + 8. %F A185950 a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). %F A185950 G.f.: ( 1-5*x-4*x^2 ) / (x-1)^3. - _R. J. Mathar_, Feb 10 2011 %F A185950 E.g.f.: (4*x^2 + 3*x - 1)*exp(x). - _G. C. Greubel_, Jul 23 2017 %e A185950 11--12--13--14--15 %e A185950 | | %e A185950 10 1---2---3 16 %e A185950 | | | | %e A185950 9 0-(-1) 4 17 %e A185950 | | | %e A185950 8---7---6---5 18 %p A185950 A185950:=n->4*n^2-n-1: seq(A185950(n), n=0..100); # _Wesley Ivan Hurt_, Jan 30 2017 %t A185950 Table[4n^2-n-1,{n,0,60}] (* or *) LinearRecurrence[{3,-3,1},{-1,2,13},60] (* _Harvey P. Dale_, May 22 2015 *) %o A185950 (Magma)[-1-n+4*n^2: n in [0..80]]; // _Vincenzo Librandi_, Feb 08 2011 %o A185950 (PARI) a(n)=4*n^2-n-1 \\ _Charles R Greathouse IV_, Dec 21 2011 %o A185950 (Haskell) %o A185950 a185950 n = (4 * n - 1) * n - 1 -- _Reinhard Zumkeller_, Aug 14 2013 %Y A185950 Cf. A033951, A182868. %K A185950 sign,easy %O A185950 0,2 %A A185950 _Paul Curtz_, Feb 07 2011