A274142 Number of integers in n-th generation of tree T(1/2) defined in Comments.
1, 1, 1, 2, 2, 4, 5, 8, 11, 17, 25, 37, 54, 81, 119, 177, 261, 388, 574, 851, 1260, 1868, 2767, 4101, 6077, 9006, 13347, 19781, 29315, 43448, 64392, 95436, 141444, 209636, 310705, 460501, 682519, 1011581, 1499295, 2222155, 3293534, 4881472, 7235018, 10723311, 15893460, 23556367, 34913897, 51747400
Offset: 0
Keywords
Examples
If r = 1/2, then g(3) = {3,2r,r+1, r^2}, in which the integers are 3 and 1, so that a(3) = 2.
Links
- Kenny Lau, Table of n, a(n) for n = 0..5847
Programs
-
Mathematica
z = 18; t = Join[{{0}}, Expand[NestList[DeleteDuplicates[Flatten[Map[{# + 1, x*#} &, #], 1]] &, {1}, z]]]; u = Table[t[[k]] /. x -> 1/2, {k, 1, z}]; Table[Count[Map[IntegerQ, u[[k]]], True], {k, 1, z}] (* second program: *) T[0] = {0}; T[n_] := T[n] = Complement[Join[T[n-1]+1, x*T[n-1]], T[n-1]]; Reap[For[n = 0, n <= 25, n++, cnt = Count[T[n] /. x -> 1/2, Integer]; Print[n, " ", cnt]; Sow[cnt]]][[2, 1]] (* _Jean-François Alcover, Jun 14 2016 *)
Extensions
More terms from Jean-François Alcover, Jun 14 2016
More terms from Kenny Lau, Jul 04 2016
Comments