A070313 a(n) = 2^n - (2*n+1).
0, -1, -1, 1, 7, 21, 51, 113, 239, 493, 1003, 2025, 4071, 8165, 16355, 32737, 65503, 131037, 262107, 524249, 1048535, 2097109, 4194259, 8388561, 16777167, 33554381, 67108811, 134217673, 268435399, 536870853, 1073741763, 2147483585
Offset: 0
Links
- Denis Krotov, A partition of the hypercube into cosets of maximally nonparallel Hamming codes, arXiv:1210.0010v1 [cs.IT], Sep 28, 2012.
- D. P. Roselle, Permutations by number of rises and successions, Proc. Amer. Math. Soc., 19 (1968), 8-16.
- D. P. Roselle, Permutations by number of rises and successions, Proc. Amer. Math. Soc., 19 (1968), 8-16. [Annotated scanned copy]
- Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
Programs
-
Mathematica
lst={};s=-1;Do[s+=s+n;AppendTo[lst, s], {n, 1, 5!, 2}];lst (* Vladimir Joseph Stephan Orlovsky, Oct 18 2008 *) Table[2^n-(2n+1),{n,0,40}] (* Harvey P. Dale, Feb 13 2024 *)
-
Maxima
makelist(2^n - (2*n+1),n,0,20); /* Martin Ettl, Jan 25 2013 */
-
PARI
a(n)=2^n-(2*n+1) \\ Charles R Greathouse IV, Oct 07 2015
Formula
E.g.f.: (exp(x))^2 - exp(x) - 2*x*exp(x). - Paul Barry, May 13 2004
From Colin Barker, Mar 21 2012: (Start)
a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3).
G.f.: -x*(1-3*x)/((1-x)^2*(1-2*x)). (End)
Comments