|
|
A191341
|
|
a(n) = 4^n - 2*2^n + 3.
|
|
4
|
|
|
3, 11, 51, 227, 963, 3971, 16131, 65027, 261123, 1046531, 4190211, 16769027, 67092483, 268402691, 1073676291, 4294836227, 17179607043, 68718952451, 274876858371, 1099509530627, 4398042316803, 17592177655811, 70368727400451, 281474943156227, 1125899839733763
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Also the number of dominating sets for the complete bipartite graph K_{n,n}. - Eric W. Weisstein, Apr 24 2017
For n > 1, a(n) is the largest integer such that the binary representations of a(n)-1 and a(n)+1 both contain exactly n 0's and n 1's.
|
|
LINKS
|
|
|
FORMULA
|
E.g.f.: -2 + 3*exp(x) - 2*exp(2*x) + exp(4*x). - G. C. Greubel, Feb 10 2019
|
|
MATHEMATICA
|
With[{r = Range[10^5]}, 2 + SplitBy[Cases[Transpose[{Partition[Tally[#][[All, 2]] & /@ IntegerDigits[r, 2], 2, 1, 1], r}], {{{n_, n_}, {n_, n_}}, p_} :> {n, p}], First][[All, -1, -1]]] (* Eric W. Weisstein, Apr 24 2017 *)
CoefficientList[Series[(3-10x+16x^2)/((1-x)(1-2x)(1-4x)), {x, 0, 20}], x] (* Eric W. Weisstein, Jun 29 2017 *)
|
|
PROG
|
(Sage) [(2^n-1)^2+2 for n in (1..30)] # G. C. Greubel, Feb 10 2019
(GAP) List([1..30], n -> (2^n-1)^2+2); # G. C. Greubel, Feb 10 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Definition changed to closed-form formula and original definition clarified and moved to comment by Eric W. Weisstein, Apr 24 2017
|
|
STATUS
|
approved
|
|
|
|