A283793 Number of elements formable in <= n steps, starting with 4 elements, combining 2 elements into a new element at each step.
4, 14, 109, 5999, 17997004, 161946085486514, 13113267302202731189080679359, 85978889669509647874887802052390686151982448025024665124
Offset: 0
Keywords
Examples
Starting with {A, B, C, D}, we can make {AA, AB, AC, AD, BB, BC, BD, CC, CD, and DD}. The union of these two sets has cardinality 14 = a(1).
Links
- Michael Turniansky, Table of n, a(n) for n = 0..9
- Anton Rybakov as Joybits Ltd., Doodle God game homepage
- Cary Kaiming Huang, Elements 3. An online version which is not bounded by predefined elements, so a(n) could theoretically be reached. (No longer works.)
Crossrefs
Cf. A006894.
Programs
-
Mathematica
a[0]=4; a[n_] := a[n] = 4 + a[n-1] (a[n-1] + 1)/2; a /@ Range[0, 7] (* Giovanni Resta, Mar 16 2017 *)
-
PARI
a(n) = if(n<1, 4, 4 + a(n - 1) * (a(n - 1) + 1) / 2); for(n=0, 7, print1(a(n),", ")) \\ Indranil Ghosh, Mar 16 2017
Formula
a(n) = 4 + T(a(n-1)) where T(m) is the m-th triangular number.
Comments