login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A276979
a(n) = (floor(n/2)+1)^n.
2
1, 4, 8, 81, 243, 4096, 16384, 390625, 1953125, 60466176, 362797056, 13841287201, 96889010407, 4398046511104, 35184372088832, 1853020188851841, 16677181699666569, 1000000000000000000, 10000000000000000000, 672749994932560009201
OFFSET
1,2
COMMENTS
Functions from [n] to [n] with f(i) even or f(i) = 1 for all i.
Functions from [n] to [n] with f(i) odd or f(i) = n for all i.
MATHEMATICA
Table[(Floor[n/2] + 1)^n, {n, 1, 20}]
PROG
(PARI) a(n) = (n\2 + 1)^n; \\ Michel Marcus, Oct 08 2016
CROSSREFS
Sequence in context: A288956 A353032 A236284 * A221256 A068208 A090254
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Sep 23 2016
STATUS
approved