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”).

A269343
Sequence that describes an infinite directed graph representing all of the combinations of a two-input logic gate from two starting inputs.
0
2, 3, 18, 3672, 24910877376, 7729246189105080794275923648000, 230877401507888187121306798555325965236859153667020902009451728482501547497913534258396672000
OFFSET
0,1
COMMENTS
This sequence is part of a family of sequences defined by:
a(n) = g*( a(n-1)*(a(n-1)-1)/2 ) * ( 1 + g*(Sum_{k=0..n-1} a(k)) ), a(0) = h;
where h indicates the starting number of nodes and g represents how many different logic gates (nodes) will compare each pair of nodes.
This particular sequence follows g=1, h=2.
This sequence originated from exploring g=2, h=3 when I was working on the "three NOTs problem" (the task to design a logic circuit that outputs three complements with only two NOT gates)
FORMULA
a(n) = ( a(n-1)*(a(n-1)-1)/2 ) * ( 1 + (Sum_{k=0..n-1} a(k)) ), a(0) = 2.
EXAMPLE
The first term a(0) = 2 represents the two starting nodes.
The second term a(1) = 3 (and all terms after) are formed by two parts:
[1] the comparison of the two inputs in a(0) yields one node in a(1) (as an AND gate comparing two signals),
[2] the comparisons of the one node in a(1) (placed by the first step) with the two nodes in a(0) (all previous nodes) yield two more nodes that are then added to the one node in a(1) giving a(1) = 1 + 2 = 3.
The third term a(2) = 18 is formed the same way:
[1] the comparison of all nodes in a(1) yields three nodes to be placed in a(2),
[2] the comparisons of these three nodes with each of the nodes in a(1) and a(0) yields 3*5 = 15 nodes which are then added to the nodes already in a(2) giving a(2) = 3 + 15 = 18.
This compound construction of terms was used to ensure that the logic circuit that is represented by this sequence doesn't contain any duplicate comparisons of the same nodes.
CROSSREFS
Sequence in context: A102939 A073983 A230602 * A292991 A139319 A269251
KEYWORD
nonn
AUTHOR
M Stefan Walker, Feb 25 2016
STATUS
approved