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 A151821 #111 Jun 11 2025 00:57:32 %S A151821 1,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536, %T A151821 131072,262144,524288,1048576,2097152,4194304,8388608,16777216, %U A151821 33554432,67108864,134217728,268435456,536870912,1073741824,2147483648,4294967296,8589934592 %N A151821 Powers of 2, omitting 2 itself. %C A151821 Different from A046055. %C A151821 An elephant sequence, see A175655. For the central square just one A[5] vector, with decimal value 170, leads to this sequence. For the corner squares this vector leads to the companion sequence A095121. - _Johannes W. Meijer_, Aug 15 2010 %C A151821 This is a subsequence of A055744, numbers n such that n and phi(n) have same prime factors. - _Michel Marcus_, Mar 20 2015 %C A151821 INVERTi transform of A007483: (1, 5, 17, 61, 217, 773, ...). - _Gary W. Adamson_, Aug 06 2016 %C A151821 Nonprimes that are also powers of 2. Intersection of A000079 and A018252. - _Omar E. Pol_, Jan 27 2017 %C A151821 Also the chromatic number of the n-Keller graph. - _Eric W. Weisstein_, Nov 17 2017 %H A151821 Vincenzo Librandi, <a href="/A151821/b151821.txt">Table of n, a(n) for n = 1..1000</a> %H A151821 Paul Barry, <a href="https://arxiv.org/abs/2004.04577">On a Central Transform of Integer Sequences</a>, arXiv:2004.04577 [math.CO], 2020. %H A151821 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/ChromaticNumber.html">Chromatic Number</a> %H A151821 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/KellerGraph.html">Keller Graph</a> %H A151821 <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (2). %F A151821 G.f.: x*(1+2*x)/(1-2*x). - _Philippe Deléham_, Sep 17 2009 %F A151821 a(1) = 1 and a(n) = 3 + Sum_{k=1..n-1} a(k) for n>=2. - _Joerg Arndt_, Aug 15 2012 %F A151821 E.g.f.: exp(2*x) - x - 1. - _Stefano Spezia_, Jan 31 2023 %t A151821 CoefficientList[Series[(1 + 2 x)/(1 - 2 x), {x, 0, 40}], x] (* _Vincenzo Librandi_, Jul 21 2013 *) %t A151821 DeleteCases[2^Range[0, 33], p_ /; PrimeQ @ p] (* _Michael De Vlieger_, Aug 06 2016 *) %t A151821 Join[{1}, 2^Range[2, 20]] (* _Eric W. Weisstein_, Nov 17 2017 *) %o A151821 (Magma) [1] cat [2^n: n in [2..35]]; // _Vincenzo Librandi_, Jul 21 2013 %o A151821 (Haskell) %o A151821 a151821 n = a151821_list !! (n-1) %o A151821 a151821_list = x : xs where (x : _ : xs) = a000079_list %o A151821 -- _Reinhard Zumkeller_, Dec 16 2013 %o A151821 (PARI) a(n)=if(n>1,2^n,1) \\ _Charles R Greathouse IV_, Dec 08 2015 %o A151821 (PARI) Vec(x*(1+2*x)/(1-2*x) + O(x^100)) \\ _Altug Alkan_, Dec 09 2015 %o A151821 (Python) %o A151821 def A151821(n): return 1<<n if n>1 else 1 # _Chai Wah Wu_, Jun 10 2025 %Y A151821 Cf. A000079, A007483, A018252, A020707, A046055, A055744, A063759, A095121, A175655. %Y A151821 Partial sums are given by 2*A000225(n)-1, which is not the same as A000918. %K A151821 nonn,easy %O A151821 1,2 %A A151821 _N. J. A. Sloane_, Jul 08 2009