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.

A193868 Even central polygonal numbers.

This page as a plain text file.
%I A193868 #37 May 11 2025 01:08:25
%S A193868 2,4,16,22,46,56,92,106,154,172,232,254,326,352,436,466,562,596,704,
%T A193868 742,862,904,1036,1082,1226,1276,1432,1486,1654,1712,1892,1954,2146,
%U A193868 2212,2416,2486,2702,2776,3004,3082,3322,3404,3656,3742,4006,4096,4372
%N A193868 Even central polygonal numbers.
%C A193868 Odd triangular numbers plus 1.
%H A193868 Vincenzo Librandi, <a href="/A193868/b193868.txt">Table of n, a(n) for n = 1..10000</a>
%H A193868 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1).
%F A193868 a(n) = A000124(A042963(n-1)).
%F A193868 a(n) = 1 + A014493(n).
%F A193868 a(n) = 2*A174114(n).
%F A193868 G.f.: -2*x*(1+x+4*x^2+x^3+x^4) / ( (1+x)^2*(x-1)^3 ). - _R. J. Mathar_, Aug 25 2011
%F A193868 From _Colin Barker_, Jan 27 2016: (Start)
%F A193868 a(n) = (3+(-1)^n-2*(2+(-1)^n)*n+4*n^2)/2.
%F A193868 a(n) = 2*n^2-3*n+2 for n even.
%F A193868 a(n) = 2*n^2-n+1 for n odd. (End)
%F A193868 Sum_{n>=1} 1/a(n) = 2*Pi*sinh(sqrt(7)*Pi/4)/(sqrt(7)*(sqrt(2) + 2*cosh(sqrt(7)*Pi/4))). - _Amiram Eldar_, May 11 2025
%t A193868 Table[(3 + (-1)^n - 2 (2 + (-1)^n) n + 4 n^2)/2, {n, 50}] (* or *)
%t A193868 Select[PolygonalNumber@ Range@ 100, OddQ] + 1 (* Version 10.4, or *)
%t A193868 Table[If[EvenQ@ n, 2 n^2 - 3 n + 2, 2 n^2 - n + 1], {n, 50}] (* or *)
%t A193868 Rest@ CoefficientList[Series[-2 x (1 + x + 4 x^2 + x^3 + x^4)/((1 + x)^2 (x - 1)^3), {x, 0, 50}], x] (* _Michael De Vlieger_, Jun 30 2016 *)
%t A193868 LinearRecurrence[{1,2,-2,-1,1},{2,4,16,22,46},50] (* _Harvey P. Dale_, Sep 13 2020 *)
%o A193868 (Magma) [1+((2*n-1)*(2*n-1-(-1)^n)/2): n in [1..50]]; // _Vincenzo Librandi_, Aug 18 2011
%o A193868 (PARI) a(n)=(2*n-1)*(2*n-1-(-1)^n)/2+1 \\ _Charles R Greathouse IV_, Jun 11 2015
%o A193868 (PARI) Vec(2*x*(1+x+4*x^2+x^3+x^4)/((1-x)^3*(1+x)^2) + O(x^100)) \\ _Colin Barker_, Jan 27 2016
%Y A193868 Cf. A000124, A014493, A174114, A193867.
%K A193868 nonn,easy
%O A193868 1,1
%A A193868 _Omar E. Pol_, Aug 15 2011