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.

A058128 a(1) = 1, a(n) = (n^n-n)/(n-1)^2 for n >= 2.

This page as a plain text file.
%I A058128 #20 Nov 19 2024 01:04:54
%S A058128 1,2,6,28,195,1866,22876,342392,6053445,123456790,2853116706,
%T A058128 73686780564,2103299351335,65751519677858,2234152501943160,
%U A058128 81985529216486896,3231407272993502985,136146740744970718254,6106233505124424657790,290464265927977839335180
%N A058128 a(1) = 1, a(n) = (n^n-n)/(n-1)^2 for n >= 2.
%C A058128 Number of acyclic-function digraphs on n vertices. An acyclic-function digraph is a labeled digraph which (i) has no cycles and no loops, (ii) has outdegree 0 or 1 for all vertices and (iii) has x > y when vertex x has outdegree 0 and vertex y has outdegree 1.
%C A058128 This sequence is the sum of antidiagonals of A058127.
%C A058128 Conjecture: For even n, a(n) is prime or a weak Fermat pseudoprime to base n. - _Davide Rotondo_, Nov 06 2024
%H A058128 T. D. Noe, <a href="/A058128/b058128.txt">Table of n, a(n) for n=1..100</a>
%H A058128 D. P. Walsh, <a href="http://www.mtsu.edu/~dwalsh/acyclic/acycnote.html">Notes on acyclic functions and their directed graphs</a>
%F A058128 a(n) = Sum_{k=1..n} k*n^(n-k-1). - _Benoit Cloitre_, Sep 28 2002
%e A058128 a(3) = 6 since the acyclic-function digraphs on 3 vertices are: {(1), (2), (3)} {(1,2), (3)} {(1,3), (2)} {(1,2), (2,3)} {(1,3), (2,3)} {(2,1), (1,3)} where (x) denotes a vertex of degree 0 and (x,y) denotes the subgraph consisting of vertices x and y and the arc from x to y.
%t A058128 Join[{1},Table[(n^n-n)/(n-1)^2,{n,2,20}]] (* _Harvey P. Dale_, Jul 17 2011 *)
%Y A058128 Cf. A058127.
%K A058128 nice,nonn
%O A058128 1,2
%A A058128 _Dennis P. Walsh_, Nov 14 2000