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.

A168658 a(n) = ceiling(n^n/2).

This page as a plain text file.
%I A168658 #19 Sep 08 2022 08:45:49
%S A168658 1,1,2,14,128,1563,23328,411772,8388608,193710245,5000000000,
%T A168658 142655835306,4458050224128,151437553296127,5556003412779008,
%U A168658 218946945190429688,9223372036854775808,413620130943168382089
%N A168658 a(n) = ceiling(n^n/2).
%C A168658 Number of functions of [n] to [n] (endofunctions of degree n) up to complement to n+1.
%C A168658 There is only one function, and only when n=2k-1 is odd, fixed by n+1-complement, the constant function with value k.
%H A168658 Vincenzo Librandi, <a href="/A168658/b168658.txt">Table of n, a(n) for n = 0..300</a>
%F A168658 a(n) = ceiling(A000312(n)/2).
%e A168658 Ceiling(6^6/2) = 23328.
%t A168658 Join[{1}, Table[Ceiling[n^n/2], {n, 1, 25}]] (* _G. C. Greubel_, Jul 28 2016 *)
%o A168658 (Sage) [ceil(n^n/2) for n in range(0,21)]#
%o A168658 (Magma)[Ceiling(n^n/2): n in [0..20]]; // _Vincenzo Librandi_, Aug 29 2011
%o A168658 (PARI) a(n) = ceil(n^n/2); \\ _Michel Marcus_, Feb 18 2016
%Y A168658 Cf. A000312 (all endofunctions of degree n)
%Y A168658 Cf. A057065 (floor of n^n / 2).
%K A168658 nonn,easy
%O A168658 0,3
%A A168658 _Zerinvary Lajos_, Dec 02 2009