login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A360820 a(n) = Sum_{k=0..n} binomial(n, k)*2^(n^2-k*(n-k)). 0
1, 4, 48, 1792, 221184, 98566144, 173946175488, 1281755680079872, 39534286378918477824, 5018464395368794081460224, 2586745980900067184722499862528, 5375203895735606878055792019528220672, 44865714160227204455469409035569750630989824, 1501355804811017489524770237231795462175548447391744 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
This is the model count of the following sentence in first-order logic: forall X. forall Y. friends(X, Y) /\ smokes(X) -> smokes(Y).
LINKS
G. Van den Broeck, W. Meert, and A. Darwiche, Skolemization for weighted first-order model counting, arXiv:1312.5378 [cs.AI], 2013-2014.
FORMULA
a(n) = Sum_{k=0..n} binomial(n, k)*2^(n^2-k*(n-k)).
a(n) ~ 2^(n^2 + 1). - Vaclav Kotesovec, Feb 22 2023
EXAMPLE
If the domain is {1}, then all four interpretations ({}, {smokes(1)}, {friends(1, 1)}, {smokes(1), friends(1, 1)}) are models, so a(1) = 4.
MATHEMATICA
a[n_] := Sum[Binomial[n, k]*2^(n^2 - k*(n - k)), {k, 0, n}]; Array[a, 14, 0] (* Amiram Eldar, Feb 24 2023 *)
PROG
(PARI) a(n) = sum(k=0, n, binomial(n, k)*2^(n^2-k*(n-k))); \\ Michel Marcus, Feb 22 2023
CROSSREFS
Sequence in context: A332865 A346949 A011266 * A362828 A197927 A100568
KEYWORD
nonn,easy
AUTHOR
Paulius Dilkas, Feb 21 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 11 02:58 EDT 2024. Contains 375059 sequences. (Running on oeis4.)