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 A174296 #11 Sep 08 2022 08:45:51 %S A174296 1,2,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3, %T A174296 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3, %U A174296 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2 %N A174296 Row sums of A174294. %H A174296 G. C. Greubel, <a href="/A174296/b174296.txt">Table of n, a(n) for n = 0..1000</a> %H A174296 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1). %F A174296 a(A004280(n)) = 3 for n > 2. %F A174296 From _G. C. Greubel_, Nov 25 2021: (Start) %F A174296 a(n) = a(n-2) for n > 3, with a(0) = 1, a(1) = 2, a(2) = 2, a(3) = 3. %F A174296 a(n) = (5 - (-1)^n)/2 for n > 1, with a(0) = 1, a(1) = 2. %F A174296 a(n) = (n+1)*[n<2] + A010693(n)*[n>1]. %F A174296 G.f.: (1_+ 2*x + x^2 + x^3)/(1 - x^2). %F A174296 E.g.f.: (1/2)*( -exp(-x) - 2*(1+x) + 5*exp(x) ). (End) %t A174296 Table[If[n<2, n+1, (5-(-1)^n)/2], {n,0,110}] (* _G. C. Greubel_, Nov 25 2021 *) %o A174296 (Magma) [n lt 2 select (n+1) else 2 + (n mod 2): n in [0..110]]; // _G. C. Greubel_, Nov 25 2021 %o A174296 (Sage) [1,2]+[(5-(-1)^n)/2 for n in (2..110)] # _G. C. Greubel_, Nov 25 2021 %Y A174296 Cf. A010693, A112468, A112467, A174294, A174295, A174297. %K A174296 nonn,easy %O A174296 0,2 %A A174296 _Mats Granvik_, Mar 15 2010