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.

A147597 a(n) is the number whose binary representation is A138146(n).

This page as a plain text file.
%I A147597 #21 Aug 04 2025 14:56:18
%S A147597 1,7,31,119,455,1799,7175,28679,114695,458759,1835015,7340039,
%T A147597 29360135,117440519,469762055,1879048199,7516192775,30064771079,
%U A147597 120259084295,481036337159,1924145348615,7696581394439,30786325577735,123145302310919,492581209243655
%N A147597 a(n) is the number whose binary representation is A138146(n).
%C A147597 Bisection of A147596.
%H A147597 Colin Barker, <a href="/A147597/b147597.txt">Table of n, a(n) for n = 1..1000</a>
%H A147597 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (5,-4).
%F A147597 From _R. J. Mathar_, Feb 05 2010: (Start)
%F A147597 a(n) = 5*a(n-1) - 4*a(n-2) for n>5.
%F A147597 G.f.: x*(2*x+1)*(2*x-1)*(4*x^2+2*x+1)/((4*x-1)*(1-x)). (End)
%F A147597 a(n) = 7*4^(n-2) + 7 for n>3. - _Colin Barker_, Nov 25 2016
%F A147597 E.g.f.: (7/16)*(16*exp(x) + exp(4*x)) -(119/16) -31*x/4 -7*x^2/2 -2*x^3/3. - _G. C. Greubel_, Oct 25 2022
%t A147597 Table[FromDigits[#, 2] &@ If[n < 4, ConstantArray[1, 2 n - 1], Join[#, ConstantArray[0, 2 n - 7], #]] &@ ConstantArray[1, 3], {n, 25}] (* or *)
%t A147597 Rest@ CoefficientList[Series[x (2 x + 1) (2 x - 1) (4 x^2 + 2 x + 1)/((4 x - 1) (1 - x)), {x, 0, 25}], x] (* _Michael De Vlieger_, Nov 25 2016 *)
%t A147597 LinearRecurrence[{5,-4},{1,7,31,119,455},30] (* _Harvey P. Dale_, Aug 04 2025 *)
%o A147597 (PARI) Vec(x*(2*x+1)*(2*x-1)*(4*x^2+2*x+1)/((4*x-1)*(1-x)) + O(x^30)) \\ _Colin Barker_, Nov 25 2016
%o A147597 (Magma) [1,7,31] cat [7*(1+4^(n-2)): n in [4..40]]; // _G. C. Greubel_, Oct 25 2022
%o A147597 (SageMath)
%o A147597 def A147597(n): return 7*(1+4^(n-2)) -(119/16)*int(n==0) -(31/4)*int(n==1) -7*int(n==2) -4*int(n==3)
%o A147597 [A147597(n) for n in range(1,41)] # _G. C. Greubel_, Oct 25 2022
%Y A147597 Cf. A138146, A145641, A147537, A147538, A147539.
%Y A147597 Cf. A147540, A147590, A147595, A147596.
%K A147597 base,easy,nonn
%O A147597 1,2
%A A147597 _Omar E. Pol_, Nov 08 2008
%E A147597 More terms from _R. J. Mathar_, Feb 05 2010