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 A129557 #154 Feb 16 2025 08:33:05 %S A129557 1,4,34,151,1291,5734,49024,217741,1861621,8268424,70692574,313982371, %T A129557 2684456191,11923061674,101938642684,452762361241,3870983965801, %U A129557 17193046665484,146995452057754,652883010927151,5581956194228851,24792361368566254 %N A129557 Numbers k > 0 such that k^2 is a centered pentagonal number (A005891). %C A129557 Corresponding numbers m such that centered pentagonal number A005891(m) = (5*m^2 + 5*m + 2)/2 is a perfect square are listed in A129556 = {0, 2, 21, 95, 816, 3626, 31005, ...}. %C A129557 Also positive integers x in the solutions to 2*x^2 - 5*y^2 + 5*y - 2 = 0, the corresponding values of y being A254332. - _Colin Barker_, Jan 28 2015 %H A129557 Vincenzo Librandi, <a href="/A129557/b129557.txt">Table of n, a(n) for n = 1..1000</a> %H A129557 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/CenteredPentagonalNumber.html">Centered Pentagonal Number</a>. %H A129557 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,38,0,-1). %F A129557 a(n) = sqrt( (5*A129556(n)^2 + 5*A129556(n) + 2)/2 ). %F A129557 For n >= 5, a(n) = 38*a(n-2) - a(n-4). - _Max Alekseyev_, May 08 2009 %F A129557 G.f.: x*(1-x)*(1 + 5*x + x^2)/((1 + 6*x - x^2)*(1 - 6*x - x^2)). - _Colin Barker_, Apr 11 2012 %F A129557 From _Andrea Pinos_, Oct 07 2022: (Start) %F A129557 The ratios of successive terms converge to two different limits: %F A129557 lower: D = lim_{n->oo} a(2n)/a(2n-1) = (7 + 2*sqrt(10))/3; %F A129557 upper: E = lim_{n->oo} a(2n+1)/a(2n) = (13 + 4*sqrt(10))/3. %F A129557 So lim_{n->oo} a(n+2)/a(n) = D*E = 19 + 6*sqrt(10). %F A129557 a(n) = (A005667(n) - (-1)^n*A005667(n-1))/4. (End) %t A129557 Do[ f=(5n^2+5n+2)/2; If[ IntegerQ[ Sqrt[f] ], Print[ Sqrt[f] ] ], {n,1,40000} ] %t A129557 CoefficientList[Series[(1-x)*(1+5*x+x^2)/((1+6*x-x^2)*(1-6*x-x^2)),{x,0,30}],x] (* _Vincenzo Librandi_, Apr 11 2012 *) %o A129557 (PARI) A129557()={ for(n=1,1000000000, f=(5*n^2+5*n+2)/2 ; if(issquare(f), print1(sqrtint(f), ", ") ; ); ) ; } \\ _R. J. Mathar_, Oct 11 2007 %o A129557 (PARI) Vec(x*(1-x)*(1+5*x+x^2)/((1+6*x-x^2)*(1-6*x-x^2)) + O(x^100)) \\ _Colin Barker_, Jan 28 2015 %Y A129557 Cf. A005891 (centered pentagonal numbers). %Y A129557 Cf. A129556 (k such that A005891(k) is a perfect square). %Y A129557 Cf. A000290, A005667, A254332, A254333. %K A129557 nonn,easy %O A129557 1,2 %A A129557 _Alexander Adamchuk_, Apr 20 2007 %E A129557 More terms from _R. J. Mathar_, Oct 11 2007 %E A129557 More terms from _Max Alekseyev_, May 08 2009