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 A109043 #87 Aug 20 2024 15:29:51 %S A109043 0,2,2,6,4,10,6,14,8,18,10,22,12,26,14,30,16,34,18,38,20,42,22,46,24, %T A109043 50,26,54,28,58,30,62,32,66,34,70,36,74,38,78,40,82,42,86,44,90,46,94, %U A109043 48,98,50,102,52,106,54,110,56,114,58,118,60,122,62,126,64,130,66,134 %N A109043 a(n) = lcm(n,2). %C A109043 Exponent of the dihedral group D(2n) = <x, y | x^n = y^2 = 1, yxy = x^-1>. - _Arkadiusz Wesolowski_, Sep 10 2013 %C A109043 Second column of table A210530. - _Boris Putievskiy_, Jan 29 2013 %C A109043 For n > 1, the basic period of A000166(k) (mod n) (Miska, 2016). - _Amiram Eldar_, Mar 03 2021 %H A109043 Vincenzo Librandi, <a href="/A109043/b109043.txt">Table of n, a(n) for n = 0..10000</a> %H A109043 Dorin Andrica, Sorin Rădulescu, and George Cătălin Ţurcaş, <a href="https://doi.org/10.1007/978-3-030-55857-4_4">The Exponent of a Group: Properties, Computations and Applications</a>, Disc. Math. and Applications, Springer, Cham (2020), 57-108. %H A109043 Piotr Miska, <a href="https://doi.org/10.1016/j.jnt.2015.11.014">Arithmetic properties of the sequence of derangements</a>, Journal of Number Theory, Vol. 163 (2016), pp. 114-145; <a href="https://arxiv.org/abs/1508.01987">arXiv preprint</a>, arXiv:1508.01987 [math.NT], 2015. See p. 124 (p. 14 in the preprint). %H A109043 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,2,0,-1). %H A109043 <a href="/index/Lc#lcm">Index entries for sequences related to lcm's</a>. %F A109043 For n > 0: a(n) = A186421(n) + A186421(n+2). %F A109043 a(n) = n*2 / gcd(n, 2). %F A109043 a(n) = -(n*((-1)^n-3))/2. - _Stephen Crowley_, Feb 11 2007 %F A109043 From _R. J. Mathar_, Aug 20 2008: (Start) %F A109043 a(n) = A066043(n), n > 1. %F A109043 a(n) = 2*A026741(n). %F A109043 G.f.: 2*x(1+x+x^2)/((1-x)^2*(1+x)^2). (End) %F A109043 a(n) = n*A000034(n). - _Paul Curtz_, Mar 25 2011 %F A109043 E.g.f.: x*(2*cosh(x) + sinh(x)). - _Stefano Spezia_, May 09 2021 %F A109043 Sum_{k=1..n} a(k) ~ (3/4) * n^2. - _Amiram Eldar_, Nov 26 2022 %t A109043 LCM[Range[0,70],2] (* _Harvey P. Dale_, Aug 19 2012 *) %o A109043 (Sage) [lcm(n,2) for n in range(0, 68)] # _Zerinvary Lajos_, Jun 07 2009 %o A109043 (Haskell) %o A109043 a109043 = (lcm 2) %o A109043 a109043_list = zipWith (*) [0..] a000034_list %o A109043 -- _Reinhard Zumkeller_, Mar 31 2012 %o A109043 (Magma) [0, 2, 2] cat [Exponent(DihedralGroup(n)) : n in [3..65]]; // _Arkadiusz Wesolowski_, Sep 10 2013 %o A109043 (PARI) a(n)=lcm(n,2) \\ _Charles R Greathouse IV_, Sep 24 2015 %o A109043 (Python) %o A109043 def A109043(n): return n<<1 if n&1 else n # _Chai Wah Wu_, Aug 05 2024 %Y A109043 Cf. A000166, A109042, A152749 (partial sums). %Y A109043 Cf. A066043 (essentially the same), A000034 (=a(n)/n), A026741 (=a(n)/2). %Y A109043 Cf. A186421, A210530. %K A109043 nonn,easy %O A109043 0,2 %A A109043 _Mitch Harris_, Jun 18 2005