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.

Previous Showing 41-42 of 42 results.

A141083 a(n) = 2^(p - 2)*(2^p - 2), where p = prime(n).

Original entry on oeis.org

2, 12, 240, 4032, 1047552, 16773120, 4294901760, 68719214592, 17592181850112, 72057593769492480, 1152921503533105152, 4722366482800925736960, 1208925819613529663078400, 19342813113829668748787712
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Aug 05 2008

Keywords

Examples

			Prime(1)=2, so a(1) = 2^(2 - 2)*(2^2 - 2) = 2^0*(4-2) = 2.
Prime(2)=3, so a(2) = 2^(3 - 2)*(2^3 - 2) = 2^1*(8-2) = 12.
		

Crossrefs

Cf. A020522.

Programs

  • Mathematica
    Table[2^(n-2) (2^n-2),{n,Prime[Range[20]]}] (* Harvey P. Dale, Aug 19 2014 *)

Formula

a(n) = A020522(prime(n)-1). - Michel Marcus, Feb 18 2021

Extensions

Corrected and extended by D. S. McNeil, Mar 21 2009

A342234 a(n) = (27^n - 9^n)/2 - 12^n + 6^n.

Original entry on oeis.org

0, 3, 216, 7965, 243000, 6903873, 190505196, 5192233245, 140764942800, 3807455329593, 102881965757076, 2778771947174325, 75038262510065400, 2026169325431888913, 54708199287259567356, 1477140843778461200205, 39883035730488375376800, 1076844754605007952329833
Offset: 0

Views

Author

Petros Hadjicostas, Mar 06 2021

Keywords

Comments

For n >= 1, a(n) is the number of deterministic, completely-defined, initially-connected finite automata with n inputs and 3 unlabeled states. A020522 counts similar automata with n inputs and 2 unlabeled states.
According to a comment by Nelma Moreira in A006689 and A006690, the number of such automata with N inputs and M unlabeled states is Sum (Product_{i=1..M-1} i^(f_i - f_{i-1} - 1)) * M^(M*N - f_{M-1} - 1), where the sum is taken over integers f_1, ..., f_{M-1} satisfying 0 <= f_1 < N and f_{i-1} < f_{i} < i*N for i = 2..M-1. (See Theorem 8 in Almeida, Moreira, and Reis (2007). The value of f_0 is not relevant.) For this sequence we have M = 3 unlabeled states, for A020522 we have M = 2 unlabeled states, for A006689 we have N = 2 inputs, and for A006690 we have N = 3 inputs.
A similar formula for the number of such automata with N inputs and M unlabeled states was given by Robinson (1985, Eq. (2.3) upon division by (p-1)!). It is Sum_{r=1..M} (-1)^(r-1) * Sum_{k_1,...,k_r} (k_1/(Product_{i=1..r} k_i!)) * Product_{j=1..r} (Sum_{i=1..j} k_i)^(N*k_j), where the second sum is over all compositions (k_1,...,k_r) of length r of M. (A composition of length r of M is an ordered partition (k_1,...,k_r) with k_i >= 1 for i = 1..r and Sum_{i=1..r} k_i = M.)
Both formulas with N = n and M = 3 give a(n) = (27^n - 9^n)/2 - 12^n + 6^n.
In Liskovets (2006, Eq. (11), p. 546), a(n) equals H_N(M) = h_N(M)/(M-1)! with N = n and M = 3. The sequence h_N(M) satisfies the recurrence h_N(M) = M^(N*M) - Sum_{t=1..M-1} binomial(M-1, t-1) * M^(N*(M-t)) * h_N(t) with h_N(1) = 1. A recurrence for H_N(M) = h_N(M)/(M-1)! originally appeared in Liskovets (1969, Eq. (3), p. 17, denoted by h_{n,r}).

Crossrefs

Programs

  • PARI
    lista(nn) = {my(h=matrix(nn+3,nn+3)); my(H=vector(nn+1)); for(N=1, nn, for(M=1, nn, h[N,M] = if(M==1, 1,  M^(N*M)-sum(t=1,M-1, binomial(M-1, t-1)*M^(N*(M-t))*h[N,t]))));
    for(N=1, nn+1, H[N] = if(N==1, 0, h[N-1,3]/2)); H;}

Formula

G.f.: 3*x*(1 + 18*x - 270*x^2)/(1 - 54*x + 963*x^2 - 6966*x^3 + 17496*x^4). - Stefano Spezia, Mar 08 2021
Previous Showing 41-42 of 42 results.