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 A295821 #31 Jan 23 2025 03:54:46 %S A295821 2,12,16,24,28,36,40,48,52,60,64,72,76,84,88,96,100,108,112,120,124, %T A295821 132,136,144,148,156,160,168,172,180,184,192,196,204,208,216,220,228, %U A295821 232,240,244,252,256,264,268,276,280,288,292,300,304,312,316,324,328 %N A295821 Number of coprime pairs (a,b) with -n <= a <= n, -2 <= b <= 2. %H A295821 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,-1). %F A295821 From _Alois P. Heinz_, Jan 19 2025: (Start) %F A295821 G.f.: -2*(x^3-x^2-5*x-1)/((x+1)*(x-1)^2). %F A295821 a(n) = 2 * A047238(n+2) for n>=1. (End) %F A295821 a(n) = 6*n + 5 - (-1)^n for n>=1. - _Keagan Boyce_, Jan 19 2025 %F A295821 Sum_{n>=0} (-1)^n/a(n) = 1/4 + Pi/(24*sqrt(3)) + log(3)/8. - _Amiram Eldar_, Jan 23 2025 %o A295821 (PARI) a(n) = sum(x=-n, n, sum(y=-2, 2, gcd(x,y)==1)); \\ _Michel Marcus_, Jan 19 2025 %Y A295821 Column k=2 of A295782. %Y A295821 Cf. A047238, A137243. %K A295821 nonn,easy %O A295821 0,1 %A A295821 _Seiichi Manyama_, Nov 28 2017