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.

A061038 Denominator of 1/4 - 1/n^2.

This page as a plain text file.
%I A061038 #77 Dec 23 2024 13:07:54
%S A061038 1,36,16,100,9,196,64,324,25,484,144,676,49,900,256,1156,81,1444,400,
%T A061038 1764,121,2116,576,2500,169,2916,784,3364,225,3844,1024,4356,289,4900,
%U A061038 1296,5476,361,6084,1600,6724,441,7396,1936,8100,529,8836
%N A061038 Denominator of 1/4 - 1/n^2.
%H A061038 Harry J. Smith, <a href="/A061038/b061038.txt">Table of n, a(n) for n = 2..1000</a>
%H A061038 <a href="/index/Rec#order_12">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,3,0,0,0,-3,0,0,0,1).
%F A061038 a(4n+2) = (2n+1)^2, a(2n+3) = (4n+6)^2, a(4n+4) = (4n+4)^2. - _Ralf Stephan_, Jun 10 2005
%F A061038 a(n) = 3*a(n-4) - 3*a(n-8) + a(n-12). - _Paul Curtz_, Feb 25 2011
%F A061038 From _Bruno Berselli_, Mar 21 2011: (Start)
%F A061038 G.f.: x^2*(1 +36*x +16*x^2 +100*x^3 +6*x^4 +88*x^5 +16*x^6 +24*x^7 +x^8 +4*x^9 +4*x^11)/(1-x^4)^3.
%F A061038 a(n) = (1/64)*( n*(16 - (1+(-1)^n)*(5-i^n)) )^2 with i=sqrt(-1).
%F A061038 a(n) = (n/(n-4))^2 * a(n-4) for n>5. (End)
%F A061038 a(n) = 4*n^2 / gcd(4*n^2, (n^2-4)). - _Colin Barker_, Jan 13 2014
%F A061038 Sum_{n>=2} 1/a(n) = Pi^2/6 - 1/4. - _Amiram Eldar_, Aug 12 2022
%t A061038 Table[Denominator[1/4 - 1/n^2], {n, 2, 60}] (* _Stefan Steinerberger_, Apr 08 2006 *)
%t A061038 LinearRecurrence[{0,0,0,3,0,0,0,-3,0,0,0,1},{1,36,16,100,9,196,64,324, 25,484,144,676},50] (* _Harvey P. Dale_, Aug 05 2018 *)
%o A061038 (PARI) a(n) = { denominator(1/4 - 1/n^2) } \\ _Harry J. Smith_, Jul 17 2009
%o A061038 (Magma) [ Denominator(1/4-1/n^2): n in [2..50] ]; // _Vincenzo Librandi_, Feb 10 2011
%o A061038 (Haskell)
%o A061038 import Data.Ratio ((%), denominator)
%o A061038 a061038 n = denominator (1%4 - 1%n^2)  -- _Reinhard Zumkeller_, Jan 22 2012
%o A061038 (SageMath)
%o A061038 def A061038(n): return denominator(1/4 - 1/n^2)
%o A061038 [A061038(n) for n in range(2,51)] # _G. C. Greubel_, Apr 18 2023
%Y A061038 See A061037 for comments, references, links.
%Y A061038 Cf. A145979. - _Bruno Berselli_, Mar 21 2011
%K A061038 nonn,frac,nice,easy
%O A061038 2,2
%A A061038 _N. J. A. Sloane_, May 26 2001
%E A061038 More terms from _Stefan Steinerberger_, Apr 08 2006