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 A152046 #68 Aug 09 2024 11:16:11 %S A152046 1,1,1,3,5,11,21,43,85,171,341,683,1365,2731,5461,10923,21845,43691, %T A152046 87381,174763,349525,699051,1398101,2796203,5592405,11184811,22369621, %U A152046 44739243,89478485,178956971,357913941,715827883,1431655765,2863311531,5726623061,11453246123 %N A152046 a(n) = Product_{k=1..floor((n-1)/2)} (1 + 8*cos(k*Pi/n)^2) for n >= 0. %C A152046 Apparently the same as A001045 after the first term. - _R. J. Mathar_, Nov 27 2008 [This conjecture is true. - _Peter Luschny_, Nov 28 2019] %H A152046 Colin Barker, <a href="/A152046/b152046.txt">Table of n, a(n) for n = 0..1000</a> %H A152046 Forrest M. Hilton, <a href="https://arxiv.org/abs/2408.01353">Finite Dynamical Laminations</a>, arXiv:2408.01353 [math.DS], 2024. See p. 16. %H A152046 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (1,2). %F A152046 From _Sergei N. Gladkovskii_, May 22 2013 and Sep 09 2013: (Start) %F A152046 G.f.: 1 + A(x) where A(x) is the g.f. of A001045. %F A152046 G.f.: 1 + Q(0)/3, where Q(k)= 1 - 1/(4^k - 2*x*16^k/(2*x*4^k - 1/(1 + 1/(2*4^k - 8*x*16^k/(4*x*4^k + 1/Q(k+1)))))); (continued fraction). %F A152046 G.f.: 1+ Q(0)*x/2 , where Q(k) = 1 + 1/(1 - x*(2*k+1 + 2*x)/( x*(2*k+2 + 2*x) + 1/Q(k+1) )); (continued fraction). (End) %F A152046 From _Colin Barker_, Nov 28 2019: (Start) %F A152046 a(n) = a(n-1) + 2*a(n-2) for n>2. %F A152046 a(n) = ((-1)^(1 + n) + 2^n)/ 3 for n>0. (End) %F A152046 E.g.f.: (3 - exp(-x) + exp(2*x))/3. - _Stefano Spezia_, Feb 13 2020 %t A152046 a[n_] := Product[(1 + 8 Cos[k Pi/n]^2), {k, 1, Floor[(n - 1)/2]}]; %t A152046 Table[Round[a[n]], {n, 0, 20}] %o A152046 (PARI) Vec((1 - 2*x^2) / ((1 + x)*(1 - 2*x)) + O(x^40)) \\ _Colin Barker_, Nov 28 2019 %o A152046 (PARI) apply( {A152046(n)=2^n\/3+!n}, [0..40]) \\ _M. F. Hasler_, Feb 13 2020 %Y A152046 Cf. A001045. %K A152046 nonn,easy %O A152046 0,4 %A A152046 _Roger L. Bagula_, Nov 21 2008 %E A152046 Edited by _Peter Luschny_, Nov 28 2019